/* ---------- Fonts ---------- */
@font-face {
  font-family: 'RightSerifMono';
  src: url('assets/fonts/RightSerifMono.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  background: #fdfdfb;
  color: #111111;
  font-family: 'RightSerifMono', 'Courier New', monospace;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Page frame ---------- */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #fdfdfb;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 48px);
  padding: 48px 56px 0;
  padding: clamp(24px, 4vw, 48px) clamp(24px, 5vw, 56px) 0;
}

.mark {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  letter-spacing: 0.02em;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.mark:hover,
.mark:focus-visible {
  opacity: 0.6;
}

.intro {
  margin: 0;
  max-width: 26em;
  font-size: clamp(0.85rem, 1.15vw, 0.95rem);
  line-height: 1.55;
  flex: 1 1 320px;
}

.about-link {
  flex: 0 0 auto;
  background: none;
  border: none;
  padding: 4px;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.about-link:hover,
.about-link:focus-visible {
  opacity: 0.6;
}

.about-link img {
  width: clamp(70px, 8vw, 96px);
  height: auto;
}

/* ---------- Hero / signature ---------- */
.hero {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  padding: 56px;
  padding: clamp(24px, 5vw, 56px);
  padding-bottom: 100px;
  padding-bottom: clamp(56px, 9vw, 110px);
}

.signature {
  width: 52%;
  max-width: 760px;
  min-width: 220px;
}

.signature-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 40px);
  padding: 0 56px 40px;
  padding: 0 clamp(24px, 5vw, 56px) clamp(24px, 4vw, 40px);
  font-size: clamp(0.78rem, 1vw, 0.85rem);
  line-height: 1.6;
}

.footer-col p {
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-brand .dot {
  width: 9px;
  height: 9px;
  background: #111111;
  margin-top: 5px;
  flex: 0 0 auto;
}

.footer-brand a {
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.35);
}

.footer-labels {
  text-align: left;
}

.footer-values {
  text-align: left;
}

.footer-values a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.35);
}

/* ---------- Fullscreen "about" overlay ---------- */
.overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  z-index: 1000;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}

.overlay-close {
  position: absolute;
  top: 40px;
  top: clamp(20px, 4vw, 40px);
  right: 44px;
  right: clamp(20px, 4vw, 44px);
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.2rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  padding: 6px 10px;
}

.overlay-close:hover,
.overlay-close:focus-visible {
  opacity: 0.7;
}

.overlay-content {
  width: auto;
  max-width: 90vw;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 110px;
  gap: clamp(64px, 10vw, 160px);
}

.overlay-left {
  flex: 0 0 auto;
  width: 240px;
  width: min(260px, 34vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.overlay-photo {
  width: 240px;
  width: 100%;
  height: 240px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}

.overlay-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.overlay-name {
  color: #ffffff;
  font-family: 'RightSerifMono', 'Courier New', monospace;
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  letter-spacing: 0.12em;
  margin: 16px 0 0;
}

.overlay-blurb {
  color: #ffffff;
  font-family: 'RightSerifMono', 'Courier New', monospace;
  font-size: clamp(0.72rem, 1.1vw, 0.82rem);
  line-height: 1.6;
  margin: 10px 0 0;
}

.overlay-right {
  flex: 0 0 auto;
}

.overlay-list {
  color: #ffffff;
  font-family: 'RightSerifMono', 'Courier New', monospace;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.overlay-list li {
  font-size: clamp(0.85rem, 1.7vw, 1.1rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* ---------- Privacy policy overlay ---------- */
.policy-content {
  color: #ffffff;
  font-family: 'RightSerifMono', 'Courier New', monospace;
  width: 100%;
  max-width: 640px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 0 24px;
}

.policy-content h2 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  font-weight: 400;
}

.policy-updated {
  opacity: 0.6;
  font-size: 0.75rem;
  margin: 0 0 28px;
}

.policy-content h3 {
  font-size: clamp(0.82rem, 1.3vw, 0.92rem);
  letter-spacing: 0.05em;
  margin: 26px 0 8px;
  font-weight: 400;
}

.policy-content p {
  font-size: clamp(0.75rem, 1.1vw, 0.85rem);
  line-height: 1.65;
  margin: 0;
  opacity: 0.92;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .overlay,
  .about-link {
    transition: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
  }

  .intro {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin-top: 20px;
  }

  .mark {
    order: 1;
  }

  .about-link {
    order: 2;
    margin-left: auto;
  }

  .hero {
    align-items: center;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .signature {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-spacer {
    display: none;
  }

  .overlay-content {
    flex-direction: column;
    gap: 32px;
    max-height: 88vh;
    overflow-y: auto;
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .overlay-left {
    width: min(200px, 55vw);
  }

  .overlay-right {
    width: 100%;
  }

  .overlay-list {
    text-align: center;
  }

  .policy-content {
    max-height: 78vh;
    margin-top: 60px;
  }
}

/* ---------- Instagram link page ---------- */
body.links {
  background: #fdfdfb;
}

.links-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 32px;
}

.links-signature {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-bottom: 40px;
}

.links-list {
  width: 100%;
  max-width: 360px;
}

.link-btn {
  display: block;
  padding: 16px 20px;
  border: 1px solid #111111;
  color: #111111;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease;
}

.link-btn + .link-btn {
  margin-top: 14px;
}

.link-btn:hover,
.link-btn:focus-visible {
  background: #111111;
  color: #fdfdfb;
}

.links-footer {
  margin: 40px 0 0;
  font-size: 0.78rem;
  opacity: 0.7;
}

@media (max-width: 720px) {
  .links-signature {
    margin-bottom: 32px;
  }
}
