/* Arometh Labs: shared house styles for every page.
   Type after Studio Sevd: Nyght Serif Light (display, labels) + Uncut Sans (text), both SIL OFL. */
@font-face{ font-family:"Nyght Serif"; src:url(../fonts/NyghtSerif-Light.woff2) format("woff2"); font-weight:300; font-style:normal; font-display:swap; }
@font-face{ font-family:"Nyght Serif"; src:url(../fonts/NyghtSerif-LightItalic.woff2) format("woff2"); font-weight:300; font-style:italic; font-display:swap; }

@property --bg     { syntax:'<color>'; inherits:true; initial-value:#F1EBE0; }
@property --fg     { syntax:'<color>'; inherits:true; initial-value:#233D47; }
@property --accent { syntax:'<color>'; inherits:true; initial-value:#B8955A; }

:root{
  --teal:#233D47; --ink:#1B2328; --deep:#16262C; --grey:#A39C93; --slate:#687A85;
  --cream:#F1EBE0; --paper:#F6F1E8; --card:#FBF6EE; --brass:#B8955A;
  --bg:var(--cream); --fg:var(--teal); --accent:var(--brass);
  --serif:"Nyght Serif", "Times New Roman", serif;
  --sans:"Uncut Sans", system-ui, sans-serif;
  --display:var(--serif);
  --g:20px; --hdr:60px;
  --ease-out:cubic-bezier(.22,1,.36,1);
  --ease-io:cubic-bezier(.65,0,.35,1);
}
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
html.lenis, html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }
.lenis.lenis-stopped{ overflow:hidden; }
body{
  margin:0; background:var(--bg); color:var(--fg);
  font:400 15px/1.35 var(--sans); letter-spacing:-.01em; -webkit-font-smoothing:antialiased;
  transition:background-color 1.1s var(--ease-io), color 1.1s var(--ease-io);
}
img{ display:block; max-width:100%; }
a{ color:inherit; }
button{ font:inherit; color:inherit; }
:focus-visible{ outline:1px solid currentColor; outline-offset:4px; }
.skip{ position:fixed; left:var(--g); top:-60px; z-index:300; background:var(--teal); color:var(--cream); padding:10px 16px; border-radius:999px; }
.skip:focus{ top:12px; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Type */
.wrap{ width:100%; padding-inline:var(--g); }
.label{ font:300 12px/16.2px var(--serif); letter-spacing:.02em; }
.muted{ opacity:.6; }
h1,h2,h3{ font-family:var(--serif); font-weight:300; letter-spacing:-.04em; margin:0; line-height:.9; }
h1{ font-size:clamp(56px, 8.4vw, 144px); }
h2{ font-size:clamp(44px, 6.2vw, 104px); }
em{ font-style:italic; }
p{ margin:0; }
.lede{ font-size:clamp(17px, 1.55vw, 22px); line-height:1.2; letter-spacing:-.05em; max-width:34ch; }
.lede.wide{ max-width:52ch; }

/* One pill: a brass dot that leaves on hover */
.btn{
  display:inline-flex; align-items:center; gap:7px; min-height:32px; padding:0 16px 0 13px;
  border:0; border-radius:999px; background:color-mix(in srgb, currentColor 13%, transparent);
  font:500 12px/15px var(--sans); letter-spacing:-.01em; text-decoration:none; cursor:pointer;
  transition:padding .45s var(--ease-out), background-color .3s;
}
.btn::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--accent); flex:none; transition:transform .45s var(--ease-out), width .45s var(--ease-out), margin .45s var(--ease-out); }
.btn:hover{ background:color-mix(in srgb, currentColor 20%, transparent); padding-left:16px; }
.btn:hover::before{ transform:scale(0); width:0; margin-right:-7px; }
.btn:active{ transform:scale(.98); }
@media (pointer:coarse){ .btn{ min-height:44px; padding:0 20px 0 16px; } }
.link{ position:relative; display:inline-flex; align-items:center; gap:8px; min-height:44px; text-decoration:none; font:500 12px/15px var(--sans); }
.link::after{ content:""; position:absolute; left:0; right:0; bottom:12px; height:1px; background:currentColor; transform:scaleX(.25); transform-origin:left; transition:transform .5s var(--ease-out); }
.link:hover::after{ transform:scaleX(1); }

/* Nav: five columns, difference blend, hides only while you scroll down */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:60; padding:21px 0;
  display:grid; grid-template-columns:repeat(5, 1fr); color:#fff; mix-blend-mode:difference;
  font:400 12px/15px var(--sans); letter-spacing:-.01em;
  transition:transform .6s var(--ease-out);
}
.nav.is-hidden{ transform:translateY(-100%); }
.nav.on-image{ mix-blend-mode:normal; color:var(--cream); text-shadow:0 1px 14px rgba(16,22,26,.45); }
.nav a{ display:inline-flex; align-items:center; min-height:24px; justify-self:start; position:relative; margin-left:var(--g); text-decoration:none; }
.nav a::after{ content:""; position:absolute; left:0; right:0; bottom:3px; height:1px; background:currentColor; transform:scaleX(0); transform-origin:right; transition:transform .45s var(--ease-out); }
.nav a:hover::after{ transform:scaleX(1); transform-origin:left; }
.nav .brand::after{ display:none; }
.nav .brand span{ margin-right:3px; font:300 12px/15px var(--serif); letter-spacing:.02em; }
.nav .brand b{ font:500 13px/16px var(--sans); letter-spacing:-.06em; }
.nav [aria-current]{ font-family:var(--serif); font-weight:300; letter-spacing:.02em; }
@media (max-width: 640px){ .nav{ grid-template-columns:1.4fr 1fr 1fr; } .nav .opt{ display:none; } }
@media (pointer:coarse){ .nav{ padding:11px 0; } .nav a{ min-height:44px; } }

/* Cursor: a small grey dot that becomes a label */
.cursor{ position:fixed; left:0; top:0; z-index:90; pointer-events:none; display:none; opacity:0; transition:opacity .25s; }
.cursor span{
  position:absolute; transform:translate(-50%,-50%); display:grid; place-items:center;
  min-width:16px; height:16px; border-radius:999px; background:rgba(120,120,120,.55); backdrop-filter:blur(6px); color:#fff;
  font:500 12px/1 var(--sans); white-space:nowrap; overflow:hidden;
  transition:min-width .45s var(--ease-out), height .45s var(--ease-out), padding .45s var(--ease-out), background-color .3s;
}
.cursor b{ font-weight:500; opacity:0; transition:opacity .2s; }
.cursor.is-label span{ height:30px; min-width:110px; padding:0 14px; background:var(--teal); }
.cursor.is-label b{ opacity:1; transition-delay:.1s; }
@media (hover:hover) and (pointer:fine){ .cursor{ display:block; } }

/* Page head: the opening screen of an inner page */
.page-head{ min-height:72svh; display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:24px clamp(32px,5vw,80px); align-content:end; padding:calc(var(--hdr) + 40px) var(--g) clamp(40px,7vh,72px); }
.page-head .label{ grid-column:1/-1; }
.page-head h1{ font-size:clamp(56px, 9vw, 160px); }
.page-head .lede{ align-self:end; }
@media (max-width: 899px){ .page-head{ grid-template-columns:1fr; min-height:60svh; } }

/* Section head: label and H2 on the left, the lede on the right (the house 5:7 split) */
.sec-head{ display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:16px clamp(32px,5vw,80px); align-items:end; }
.sec-head .lede{ justify-self:end; }
@media (max-width: 899px){ .sec-head{ grid-template-columns:1fr; } .sec-head .lede{ justify-self:start; } }

/* Next page: every inner page hands on to the next room */
.next{ display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:24px clamp(32px,5vw,80px); align-items:end; padding:clamp(80px,14vh,140px) var(--g); text-decoration:none; border-top:1px solid color-mix(in srgb, currentColor 16%, transparent); }
.next .big{ font:300 clamp(48px, 7.4vw, 128px)/.9 var(--serif); letter-spacing:-.04em; transition:transform .8s var(--ease-out); }
.next:hover .big{ transform:translateX(14px); }
/* Back to the house: the quiet way home, under every next-room block (DESIGN.md §7) */
.next:has(+ .next-home){ padding-bottom:clamp(28px,5vh,48px); }
.next-home{ display:flex; padding:0 var(--g) clamp(40px,7vh,64px); }
.next-home .link span{ display:inline-block; transition:transform .5s var(--ease-out); }
.next-home .link:hover span{ transform:translateX(-4px); }
@media (max-width: 899px){ .next{ grid-template-columns:1fr; } }

/* Archive band: a dark rounded panel, "The Archive" in giant serif, the worlds rising behind it on hover. Links to the Archive. */
.archive-band{ position:relative; display:grid; place-items:center; overflow:hidden; isolation:isolate; min-height:clamp(300px,52vh,520px); padding:clamp(40px,7vh,72px) clamp(20px,4vw,56px) 28px; border-radius:30px; background:var(--ink); color:var(--cream); text-decoration:none; }
.archive-band .ab-title{ font:300 clamp(64px,11.5vw,208px)/.9 var(--serif); letter-spacing:-.035em; text-align:center; transition:letter-spacing 1.1s var(--ease-out); }
.archive-band .ab-foot{ position:absolute; left:clamp(20px,3vw,40px); right:clamp(20px,3vw,40px); bottom:24px; display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 24px; font:400 14px/1.3 var(--sans); color:rgba(241,235,224,.62); }
.archive-band .ab-go{ color:var(--cream); }
.archive-band .ab-go span{ display:inline-block; transition:transform .6s var(--ease-out); }
.archive-band .ab-peek{ position:absolute; inset:0; z-index:-1; display:flex; justify-content:center; align-items:center; gap:2vw; pointer-events:none; }
.archive-band .ab-peek img{ width:clamp(110px,13vw,220px); aspect-ratio:3/4; object-fit:cover; border-radius:16px; opacity:0; transform:translateY(40%) rotate(var(--r)) scale(.9); filter:brightness(.55); transition:opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.archive-band .ab-peek img:nth-child(1){ --r:-8deg; } .archive-band .ab-peek img:nth-child(2){ --r:-2deg; transition-delay:.05s; } .archive-band .ab-peek img:nth-child(3){ --r:3deg; transition-delay:.1s; } .archive-band .ab-peek img:nth-child(4){ --r:9deg; transition-delay:.15s; }
@media (hover:hover){
  .archive-band:hover .ab-peek img{ opacity:1; transform:translateY(0) rotate(var(--r)) scale(1); }
  .archive-band:hover .ab-title{ letter-spacing:-.015em; }
  .archive-band:hover .ab-go span{ transform:translateX(6px); }
}
.archive-band:focus-visible{ outline:2px solid var(--brass); outline-offset:4px; }
@media (max-width:899px){ .archive-band{ min-height:300px; border-radius:22px; } .archive-band .ab-title{ font-size:17vw; } .archive-band .ab-foot{ position:static; margin-top:28px; flex-direction:column; text-align:center; align-items:center; } }
@media (prefers-reduced-motion: reduce){ .archive-band .ab-peek{ display:none; } }

/* Footer: one slim row. Mark, the house line, where to find us, then the three buttons on one line */
.foot{ padding:26px var(--g); display:grid; grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) auto; align-items:center; gap:20px clamp(24px,4vw,64px); font:400 12px/15px var(--sans); }
.foot .mark{ width:48px; height:auto; display:block; }
.foot .mark circle{ fill:#B6AFA6; stroke:var(--bg); stroke-width:7; }
.foot .col{ display:grid; gap:6px; align-content:center; }
.foot a{ text-decoration:none; overflow-wrap:anywhere; }
.foot .pills{ display:flex; flex-wrap:nowrap; gap:8px; justify-content:flex-end; }
/* the invitation is the one filled button in the footer; dark footers flip it to cream (.foot-dark) */
.foot .btn-invite{ background:var(--teal); color:var(--cream); }
.foot .btn-invite::before{ background:var(--brass); }
.foot .btn-invite:hover{ background:var(--deep); }
.foot-dark .btn-invite{ background:var(--cream); color:var(--ink); }
.foot-dark .btn-invite:hover{ background:#fff; }
@media (max-width: 1100px){ .foot{ grid-template-columns:auto minmax(0,1fr) minmax(0,1fr); } .foot > .pills{ grid-column:1/-1; justify-content:flex-start; flex-wrap:wrap; } }
@media (max-width: 600px){ .foot{ grid-template-columns:auto minmax(0,1fr); gap:18px 20px; } .foot .mark{ grid-row:span 2; align-self:start; width:40px; } }

/* Reveals (site.js): words rise out of their line; photographs open from below */
.wl{ display:inline-block; overflow:hidden; vertical-align:top; padding-bottom:.12em; margin-bottom:-.12em; }
.wi{ display:inline-block; transform:translateY(108%) rotate(3deg); transform-origin:0 100%; transition:transform 1.2s var(--ease-out); transition-delay:calc(var(--i, 0) * 34ms); }
.reveal-lines.is-in .wi{ transform:none; }
.reveal-img{ clip-path:inset(100% 0 0 0 round 30px); transition:clip-path 1.5s var(--ease-io); }
.reveal-img img{ transform:scale(1.2); transition:transform 2s var(--ease-out); }
.reveal-img.is-in{ clip-path:inset(0 0 0 0 round 30px); }
.reveal-img.is-in img{ transform:none; }
.door-img.reveal-img{ clip-path:inset(100% 0 0 0); }
.door-img.reveal-img.is-in{ clip-path:inset(0); }
.btn{ transition:padding .45s var(--ease-out), background-color .3s, transform .5s var(--ease-out); }

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ transition-duration:.01ms !important; animation-duration:.01ms !important; }
  .cursor{ display:none !important; }
}
