/* site.css: the public link page and its 18+ check.
   Three themes she picks in the editor, set as a class on <html>: blush (light pink, the default), beige, and merlot
   (dark). The light themes use black for text, borders and the main link. One memorable
   thing, the arch-framed portrait with an offset mirror line; everything around it stays quiet. Instrument Serif
   italic sets her name, Hanken Grotesk does the work. Motion: one arrival moment on load and press feedback. */

@font-face{font-family:'Instrument Serif';src:url(/assets/fonts/instrument-serif-400i.woff2) format('woff2');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:'Instrument Serif';src:url(/assets/fonts/instrument-serif-400.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Hanken Grotesk';src:url(/assets/fonts/hanken-grotesk.woff2) format('woff2');font-weight:400 700;font-style:normal;font-display:swap}
/* Metric-matched fallbacks, so text doesn't jump when the fonts arrive */
@font-face{font-family:'Hanken Grotesk Fallback';src:local('Arial'),local('Liberation Sans');size-adjust:101.18%;ascent-override:98.83%;descent-override:29.95%;line-gap-override:0%}
@font-face{font-family:'Instrument Serif Fallback';src:local('Times New Roman'),local('Liberation Serif');size-adjust:83.55%;ascent-override:118.49%;descent-override:37.1%;line-gap-override:0%}

:root,.t-merlot{
  --c-ground:#41101f;       /* merlot */
  --c-ink:#fbeeef;          /* text */
  --c-ink-2:#e8c4cb;        /* small text */
  --c-line:#c98a99;         /* link outlines and the mirror line, 3:1 or more */
  --c-main:#fbeeef;         /* the main link's fill */
  --c-main-ink:#41101f;
  --c-main-ink-2:#7a3247;
  --c-main-hover:#ffffff;
  --c-main-edge:#fbeeef;
  --c-hover:rgba(251,238,239,.08);
  --c-sheet:#fbeeef;        /* the 18+ sheet */
  --c-sheet-ink:#41101f;
  --c-sheet-ink-2:#7a3247;
  --c-focus:#ffc69e;        /* peach ring on merlot */
  --c-portrait:#5a1a2e;     /* behind the portrait while it loads */
  --f-display:'Instrument Serif','Instrument Serif Fallback',Georgia,serif;
  --f-text:'Hanken Grotesk','Hanken Grotesk Fallback',system-ui,sans-serif;
  --ease-out:cubic-bezier(.23,1,.32,1);
  --ease-drawer:cubic-bezier(.32,.72,0,1);
  --dur-press:120ms;
  --dur-hover:150ms;
  --dur-drawer:320ms;
  --dur-reveal:480ms;
}
/* Blush: light pink ground, black text, borders and main link */
.t-blush{
  --c-ground:#f7e4e2;
  --c-ink:#111111;
  --c-ink-2:#4a4142;
  --c-line:#111111;
  --c-main:#111111;         /* black main link */
  --c-main-ink:#ffffff;
  --c-main-ink-2:#d6cfcd;
  --c-main-hover:#2b2b2b;
  --c-main-edge:#111111;
  --c-hover:rgba(17,17,17,.05);
  --c-sheet:#ffffff;
  --c-sheet-ink:#111111;
  --c-sheet-ink-2:#4a4142;
  --c-focus:#111111;
  --c-portrait:#ebcacb;
}
/* Beige: warm linen ground, the same black text, borders and main link */
.t-beige{
  --c-ground:#efe6da;
  --c-ink:#111111;
  --c-ink-2:#4a4142;
  --c-line:#111111;
  --c-main:#111111;
  --c-main-ink:#ffffff;
  --c-main-ink-2:#d6cfcd;
  --c-main-hover:#2b2b2b;
  --c-main-edge:#111111;
  --c-hover:rgba(17,17,17,.05);
  --c-sheet:#fffdf9;
  --c-sheet-ink:#111111;
  --c-sheet-ink-2:#4a4142;
  --c-focus:#111111;
  --c-portrait:#e2d3c1;
}

*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;background:var(--c-ground)}
body{margin:0;min-height:100svh;background:var(--c-ground);color:var(--c-ink);font:400 1rem/1.5 var(--f-text);-webkit-font-smoothing:antialiased}
a,button{touch-action:manipulation}
button,.btn,.lnk{-webkit-user-select:none;user-select:none}
img{display:block;max-width:100%}
:focus-visible{outline:3px solid var(--c-focus);outline-offset:3px}

.page{width:min(100%,30rem);margin:0 auto;padding:max(40px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(48px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}

/* Intro: the arch portrait, her name, a line and a short note */
.intro{text-align:center}
.portrait{position:relative;width:min(64vw,15rem);aspect-ratio:4/5;margin:0 auto;border-radius:999px 999px 20px 20px;background:var(--c-portrait);overflow:hidden;
  outline:1px solid var(--c-line);outline-offset:9px}
.portrait-img{width:100%;height:100%;object-fit:cover}
.portrait-empty{display:grid;place-items:center;height:100%;font:italic 400 7rem/1 var(--f-display);color:var(--c-line)}
.name{margin:2.25rem 0 0;font:italic 400 clamp(3.5rem,16vw,4.75rem)/.95 var(--f-display);letter-spacing:-.01em;overflow-wrap:anywhere}
.name-long{font-size:clamp(2.5rem,11vw,3.5rem);line-height:1}
.tagline{overflow-wrap:anywhere;margin:.6rem 0 0;font:400 1.375rem/1.25 var(--f-display);color:var(--c-ink)}
.bio{overflow-wrap:anywhere;max-width:26rem;margin:.75rem auto 0;color:var(--c-ink-2);font-size:.9375rem;line-height:1.55}

/* Links: full-width rows; the main one is filled */
.links{list-style:none;margin:2rem 0 0;padding:0;display:grid;gap:.75rem}
.lnk{display:flex;align-items:center;gap:.875rem;min-height:4rem;padding:.75rem 1.125rem;border:1.5px solid var(--c-line);border-radius:16px;
  color:var(--c-ink);text-decoration:none;transition:background-color var(--dur-hover) var(--ease-out),transform var(--dur-press) var(--ease-out)}
.lnk.has-thumb{padding-left:.5rem}
.lnk-thumb{width:4.5rem;height:6rem;border-radius:12px;object-fit:cover;object-position:50% 20%;flex:none}
.lnk-text{display:grid;gap:.125rem;flex:1;min-width:0}
.lnk-label{overflow-wrap:anywhere;font-weight:600;font-size:1.0625rem;line-height:1.3}
.lnk-note{overflow-wrap:anywhere;font-size:.875rem;line-height:1.35;color:var(--c-ink-2)}
.lnk-badge{flex:none;white-space:nowrap;font-size:.75rem;font-weight:700;line-height:1;padding:.375rem .5rem;border:1.5px solid currentColor;border-radius:999px}
.lnk-main{background:var(--c-main);border-color:var(--c-main-edge);color:var(--c-main-ink)}
.lnk-main .lnk-note{color:var(--c-main-ink-2)}
@media (hover:hover) and (pointer:fine){a.lnk:hover{background:var(--c-hover)}a.lnk-main:hover{background:var(--c-main-hover)}}
a.lnk:active{transform:scale(.97)}
a.lnk-main:focus-visible{outline-color:var(--c-focus)}

/* An empty link waiting for its address: dashed, not tappable */
.lnk-todo{border-style:dashed;opacity:.85}
.ph{justify-self:start;margin-top:.375rem;white-space:nowrap;font-size:.75rem;font-weight:600;border:1px dashed currentColor;padding:.25rem .5rem;border-radius:4px}

/* Social accounts: the same rows as the links, under their own heading */
.socials{margin-top:2.75rem}
.section-title{margin:0;text-align:center;font:italic 400 2rem/1.1 var(--f-display);color:var(--c-ink)}
.socials .links{margin-top:1rem}

/* 18+ check: a sheet from the bottom on the page, a card on /go */
.gate{color:var(--c-sheet-ink);background:var(--c-sheet);border:0;padding:1.75rem 1.5rem max(1.5rem,env(safe-area-inset-bottom))}
.gate h1,.gate h2{margin:0;font:400 1.875rem/1.1 var(--f-display)}
.gate p{margin:.625rem 0 0;color:var(--c-sheet-ink-2);font-size:.9375rem}
.gate :focus-visible{outline-color:var(--c-sheet-ink)}
.gate-actions{display:grid;gap:.625rem;margin-top:1.5rem}
.btn{display:flex;align-items:center;justify-content:center;min-height:3.25rem;padding:0 1.25rem;border:1.5px solid var(--c-sheet-ink);border-radius:14px;
  background:transparent;color:var(--c-sheet-ink);font:600 1rem/1.2 var(--f-text);text-decoration:none;cursor:pointer;transition:transform var(--dur-press) var(--ease-out)}
.btn:active{transform:scale(.97)}
.btn-main{background:var(--c-sheet-ink);color:var(--c-sheet)}

dialog.gate{position:fixed;inset:auto 0 0 0;width:min(100%,30rem);max-width:none;max-height:none;margin:0 auto;border-radius:24px 24px 0 0;
  transform:translateY(100%);transition:transform 200ms var(--ease-out)}
dialog.gate.is-in{transform:none;transition-duration:var(--dur-drawer);transition-timing-function:var(--ease-drawer)}
/* Older browsers don't pass custom properties to ::backdrop, so its colour is set per theme */
dialog.gate::backdrop{background:rgba(26,4,11,.6)}
.t-blush dialog.gate::backdrop,.t-beige dialog.gate::backdrop{background:rgba(26,4,11,.45)}

.page-gate{min-height:100svh;display:grid;align-content:center}
.gate-page{border-radius:24px;padding-bottom:1.75rem;box-shadow:0 0 0 1px var(--c-line)}

/* One arrival moment: the portrait settles, then the name */
@media (prefers-reduced-motion:no-preference){
  .portrait{animation:settle var(--dur-reveal) var(--ease-out) both}
  .name{animation:rise var(--dur-reveal) var(--ease-out) 80ms both}
}
@keyframes settle{from{opacity:0;transform:scale(1.03)}to{opacity:1;transform:none}}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Reduced motion is gentler, not none: fades stay, movement goes */
@media (prefers-reduced-motion:reduce){
  .portrait,.name{animation:fade 200ms ease-out both}
  dialog.gate,dialog.gate.is-in{transform:none;opacity:0;transition:opacity 200ms ease-out}
  dialog.gate.is-in{opacity:1}
  a.lnk:active,.btn:active{transform:none}
}
@keyframes fade{from{opacity:0}to{opacity:1}}
