/* home.css · adamraabe.com home page (ported from design round d3, 2026-11-02).
   The top photo and "Say hi" use v5-base.css + site.css untouched.
   This file styles the middle, the Space Needle Easter egg, the viewer and the "also made" line.
   Colors come from the shared tokens in site.css (--bg, --fg, --fg-soft), so light and dark match the other pages. */

:root {
  --m: clamp(20px, 5vw, 72px);
  --gap: clamp(72px, 9vw, 136px);
}

/* ---------- the middle ---------- */
.loves {
  padding: var(--gap) var(--m) calc(var(--gap) * .8);
  color: var(--fg);
  font: 400 17px/1.55 var(--sans);
}
.loves a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.loves a:hover { text-decoration-color: currentColor; }
.loves :focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }

/* the sentence */
.run {
  font: 800 clamp(34px, 5.9vw, 80px)/1.04 var(--sans);
  letter-spacing: -0.032em;
  color: var(--fg-soft);
  max-width: 21ch;
  text-wrap: pretty;
}
.run a {
  color: var(--c); text-decoration: none;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: color 160ms ease;
}
.run a:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
@media (hover: hover) {
  /* the one ambient effect: a love shows its picture through the letters */
  .run a[style*="--img"]:hover {
    /* the color under the photo means a slow or missing picture never hides the word */
    background: var(--img) center / cover no-repeat, var(--c);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
}
@media (hover: hover) and (prefers-color-scheme: dark) {
  .run a[style*="--img"]:hover { background: var(--img) center / cover no-repeat, var(--cd, var(--c)); -webkit-background-clip: text; background-clip: text; }
}
.run--second { margin-top: .5em; font-size: clamp(26px, 3.6vw, 48px); line-height: 1.08; max-width: 26ch; }
.gloss { margin-top: 32px; font: italic 400 17px/1.45 var(--sans); color: var(--fg-soft); }

/* each love */
.love { margin-top: var(--gap); max-width: 980px; scroll-margin-top: 96px; }
.love h2 {
  font: 800 clamp(34px, 5.6vw, 57px)/1 var(--sans);
  letter-spacing: -0.03em;
  color: var(--c);
}
.love > p, .love--small p { margin-top: 16px; max-width: 60ch; }
.love figure { margin: 0; }
.love img { width: 100%; height: auto; display: block; background: var(--well); }
.love figcaption { margin-top: 8px; font: 450 14px/1.45 var(--sans); color: var(--fg-soft); }
.love .wide { margin-top: 32px; max-width: 760px; }
.love .wide img { aspect-ratio: 3 / 2; object-fit: cover; }
.pair { margin-top: 32px; max-width: 860px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pair img { aspect-ratio: 4 / 3; object-fit: cover; }
.pair figure:first-child img { aspect-ratio: 4 / 3; }

/* gentle placeholders */
.love .wide.todo { max-width: 420px; }
/* note #17 + #18: small photo groups inside a love */
.gallery { margin-top: 32px; max-width: 760px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 12px; align-items: start; }
.gallery figure { margin: 0; min-width: 0; }
.gallery img { object-fit: cover; object-position: var(--pos, 50% 50%); }
.gallery .g-full { grid-column: 1 / -1; }
.gallery .g-full img { aspect-ratio: 3 / 2; }
.gallery .g-half { grid-column: span 3; }
.gallery .g-half img { aspect-ratio: 3 / 2; }
.gallery .g-third { grid-column: span 2; }
.gallery .g-third img { aspect-ratio: 4 / 5; }
.love .tall { margin-top: 32px; max-width: 420px; }
.love .tall img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }
.todo__box {
  aspect-ratio: 3 / 2; background: var(--well); border-radius: 2px;
  display: grid; place-items: center;
  font: italic 400 17px/1 var(--sans); color: var(--fg-soft);
}

/* the five small loves: a name, maybe a line, a smaller photo. Stacked on
   phones and tablets, one calm row of equal tiles on wide screens. */
.smalls { margin-top: var(--gap); max-width: 980px; display: grid; gap: clamp(48px, 7vw, 96px); }
.love--small { margin-top: 0; display: flex; flex-direction: column; }
.love--small h2 { font-size: clamp(26px, 4.2vw, 40px); }
.love--small p { margin-top: 10px; }
.love--small figure { margin-top: 16px; max-width: min(72%, 480px); }
.love--small img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 721px) {
  .smalls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .smalls--made { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .love--small h2 { font-size: clamp(22px, 1.8vw, 28px); }
  /* one row: names, lines and photos each line up across the row */
  .smalls { grid-template-rows: auto auto auto; row-gap: 0; }
  .love--small { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  .love--small h2 { grid-row: 1; align-self: end; }
  .love--small p { grid-row: 2; }
  .love--small figure { grid-row: 3; max-width: none; margin-top: 0; padding-top: 14px; }
  .love--small img, .love--small .tall-small img { aspect-ratio: 4 / 5; }
  .smalls--made .love--small img, .smalls--made .love--small .tall-small img { aspect-ratio: 4 / 3; }
}

/* ---------- Space Needle pointer on the top photo ---------- */
.needle {
  position: absolute; z-index: 4; left: 0; top: 0;
  min-width: 44px; min-height: 44px; padding: 0 10px 0 0;
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 0; cursor: zoom-in;
  transform: translate(-22px, -22px);
  color: var(--paper);
  font: italic 500 1.1rem/1 'Cormorant Garamond', serif;
  text-shadow: 0 2px 14px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.6);
}
.needle__ring {
  width: 44px; height: 44px; flex: none; border-radius: 50%; position: relative;
}
.needle__ring::before {
  content: ''; position: absolute; inset: 12px; border-radius: 50%;
  border: 1.5px solid rgba(245,241,232,.95);
  box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 0 14px rgba(0,0,0,.35);
  transition: transform 160ms ease;
}
.needle:hover .needle__ring::before, .needle:focus-visible .needle__ring::before { transform: scale(1.18); }
.needle:active .needle__ring::before { transform: scale(.94); }
.needle:focus-visible { outline: 1px solid rgba(245,241,232,.8); outline-offset: 2px; border-radius: 22px; }
.needle__label { opacity: .95; }
@media (prefers-reduced-motion: no-preference) {
  .needle.hello .needle__ring::after {
    content: ''; position: absolute; inset: 12px; border-radius: 50%;
    border: 1.5px solid rgba(245,241,232,.9);
    animation: needle-ping 1.6s ease-out 2;
  }
}
@keyframes needle-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.needle { --lead: 28px; }
.needle:not(.offedge) { padding: 0; width: 44px; }
.needle:not(.offedge) .needle__line {
  position: absolute; left: 21.25px; bottom: 32px; width: 1.5px; height: var(--lead);
  background: rgba(245,241,232,.9); box-shadow: 0 0 6px rgba(0,0,0,.35);
}
.needle:not(.offedge) .needle__label {
  position: absolute; left: 12px; bottom: calc(32px + var(--lead) + 6px); white-space: nowrap;
}
.needle.offedge .needle__line { display: none; }
/* when the Needle sits just off the edge of the crop (phones), point to it from the edge */
.needle.offedge { padding: 0 12px 0 4px; transform: translate(0, -22px); }
.needle.offedge .needle__ring::before { border-radius: 0; border: 0; box-shadow: none; inset: 0; content: '‹'; font: 400 28px/40px 'Cormorant Garamond', serif; text-align: center; }

/* Adam's note #4: nothing points at the Needle on arrival. The Needle itself stays a quiet hotspot
   (its ring shows on hover or keyboard focus), and while you scroll past the photo one line fades
   in and back out: "Did you find the Space Needle?" Tapping the line opens the viewer too. */
.needle[hidden] { display: none; }
.needle .needle__ring::before, .needle .needle__line, .needle .needle__label { opacity: 0; transition: opacity 700ms ease, transform 160ms ease; }
.needle .needle__line { display: none; }
.needle .needle__label { pointer-events: none; }
.needle.asking .needle__label, .needle:focus-visible .needle__label { opacity: .95; pointer-events: auto; }
.needle:hover .needle__ring::before, .needle:focus-visible .needle__ring::before { opacity: 1; }
.needle.offedge { pointer-events: none; }
.needle.offedge.asking { pointer-events: auto; }
.needle.offedge.asking.hinting .needle__ring::before, .needle.offedge:focus-visible .needle__ring::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .needle .needle__ring::before, .needle .needle__label { transition: none; }
}

/* Adam's note #11: the question lives in the bottom right corner, inside the thin frame line.
   Tap it for a hint; tap again to see the Needle up close. The label by the Needle is retired. */
.needle .needle__label { display: none; }
.needle-ask[hidden] { display: none; }
.needle-ask {
  position: absolute; z-index: 4;
  right: calc(var(--gutter-frame) + 14px); bottom: calc(var(--gutter-frame) + 10px);
  min-height: 44px; padding: 8px 4px; max-width: calc(100% - 2 * var(--gutter-frame) - 28px);
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px;
  background: transparent; border: 0; cursor: pointer; text-align: right;
  color: var(--paper);
  font: italic 400 1.05rem/1.2 'Cormorant Garamond', serif;
  text-shadow: 0 2px 14px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.6);
  opacity: 0; pointer-events: none; transition: opacity 700ms ease;
}
.needle-ask.asking, .needle-ask:focus-visible { opacity: .9; pointer-events: auto; }
@media (hover: hover) {
  .needle-ask:hover .needle-ask__q { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
}
.needle-ask:focus-visible { outline: 1px solid rgba(245,241,232,.8); outline-offset: 2px; }
.needle-ask__hint { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: .95rem; transition: opacity 400ms ease, max-height 400ms ease; }
.needle-ask.hinting { cursor: zoom-in; }
.needle-ask.hinting .needle-ask__hint { max-height: 1.6em; opacity: .85; }
@media (max-width: 720px) {
  .needle-ask { right: 14px; bottom: 12px; max-width: calc(100% - 28px); font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .needle-ask, .needle-ask__hint { transition: none; }
}

/* desktop: the sentence stays put on the left as an index; the loves scroll past on the right */
@media (min-width: 1100px) {
  .loves { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); column-gap: clamp(56px, 6vw, 112px); align-items: start; }
  .opening { position: sticky; top: 104px; }
  .run { font-size: clamp(34px, 3.1vw, 46px); max-width: 17ch; }
  .run--second { font-size: clamp(24px, 2.2vw, 32px); max-width: 20ch; }
  .stream > .love:first-child { margin-top: 0; }
  .run a { text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .14em; text-decoration-color: transparent; transition: text-decoration-color 200ms ease; }
  .run a.is-on { text-decoration-color: currentColor; }
}

/* ---------- the photo viewer ---------- */
.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0e0f11; color: #eef0f2; overflow: hidden;
}
.viewer::backdrop { background: #0e0f11; }
.viewer__stage { position: absolute; inset: 0; overflow: hidden; cursor: zoom-out; }
.viewer__img {
  position: absolute; left: 0; top: 0; width: 2400px; height: 1496px; max-width: none;
  transform-origin: 0 0;
  transition: transform 900ms cubic-bezier(.2,.7,.1,1);
}
.viewer__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 16px var(--m) calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(14,15,17,.85), rgba(14,15,17,0));
  font-family: var(--sans);
}
.viewer__cap { flex: 1 1 260px; font: italic 400 17px/1.4 var(--sans); }
.viewer__btn {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(238,240,242,.45); background: rgba(14,15,17,.4); color: #eef0f2;
  font: 500 15px/1 var(--sans); cursor: pointer; transition: transform 120ms ease;
}
.viewer__btn:active { transform: scale(.97); }
.viewer__btn:focus-visible { outline: 2px solid #eef0f2; outline-offset: 2px; }

/* ---------- "I also made" sentence ---------- */
.ar-sentence { padding: 64px var(--m) calc(48px + env(safe-area-inset-bottom)); background: var(--bg); }
.ar-sentence__run {
  font: 800 clamp(28px, 5.4vw, 64px)/1.08 var(--sans);
  letter-spacing: -0.03em; color: var(--fg-soft); max-width: 22ch; margin: 0; text-wrap: balance;
}
.ar-sentence__run a { color: var(--c); text-decoration: none; }
.ar-sentence__run a:hover, .ar-sentence__run a:focus-visible { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.ar-sentence__run a[aria-current="page"] { color: var(--fg); }
.ar-sentence__more { font: 450 15px/1.45 var(--sans); margin: 24px 0 0; }
.ar-sentence__more a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 12px 0; }

/* ---------- dark ---------- */
@media (prefers-color-scheme: dark) {
  .run a, .love h2, .work a[style*="--c"], .ar-sentence__run a { color: var(--cd, var(--c)); }
  .ar-sentence__run a[aria-current="page"] { color: var(--fg); }
}

/* ---------- phones ---------- */
@media (max-width: 720px) {
  .run { font-size: clamp(32px, 9vw, 44px); }
  .run--second { font-size: clamp(25px, 7vw, 32px); }
  .pair { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pair figure:first-child img { aspect-ratio: 4 / 5; }
  .pair img { aspect-ratio: 4 / 5; }
  .love--small h2 { font-size: 26px; }
  .gallery { gap: 14px 8px; }
  .work { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .viewer__img { transition: none; }
  .run a { transition: none !important; }
  .run a, .needle__ring::before, .viewer__btn { transition: none; }
}

/* bigger tap areas on phones without changing how anything looks */
@media (max-width: 720px) {
  .run a, .ar-sentence__run a, .frame-content.bot .channels a { position: relative; }
  .run a::after, .ar-sentence__run a::after, .frame-content.bot .channels a::after, .photo-section.bot > .pager-next::after {
    content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 46px; transform: translateY(-50%);
  }
}

/* ---------- note #21: Art and sculpture, Building things: small and quiet, after the loves ---------- */
.smalls--made { margin-top: var(--gap); }
.love--small .tall-small img { aspect-ratio: 4 / 5; }

/* what else I work on */
.work { margin: 0; padding: 0 var(--m); max-width: calc(34ch + 2 * var(--m)); color: var(--fg); font: 400 clamp(21px, 2.2vw, 28px)/1.42 var(--sans); }
.work a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.work p + p { margin-top: 20px; font-size: clamp(17px, 1.5vw, 19px); color: var(--fg-soft); max-width: 52ch; }
.work a[style*="--c"] { color: var(--c); font-weight: 800; }

/* note #20: the bottom photo and its Say hi are the live site's, untouched (v5-base.css + site.css).
   The family sentence sits just above it, as its own section. */
.ar-sentence { padding-bottom: var(--gap); }

/* photo picks 11/2: two-frame film strips keep their own shape; the New York box takes a wide frame */
/* "auto 1400 / 490" keeps the strip's own shape once loaded and holds its space before, so the page does not grow while you scroll (or while the menu's Say hi scrolls you down) */
.gallery .g-strip img { aspect-ratio: auto 1400 / 490; }
.love .tall--wide { max-width: 560px; }
.love .tall--wide img { aspect-ratio: 3 / 2; object-position: 50% 50%; }
.gallery .g-strip + .g-strip { margin-top: -12px; }
@media (max-width: 720px) { .gallery .g-strip + .g-strip { margin-top: -8px; } }

/* ---------- critic round 2 ---------- */
/* dark: the everething link takes its bright color (the rule above, same specificity, came later and won) */
@media (prefers-color-scheme: dark) { .work a[style*="--c"] { color: var(--cd, var(--c)); } }
/* phones: the small loves' photos run the full column instead of sitting at 72% with a gap on the right */
@media (max-width: 720px) { .love--small figure { max-width: none; } }
/* the lines after "I also made": where it all is, then the older pages */
.ar-sentence__more { margin: 28px 0 0; max-width: 52ch; color: var(--fg-soft); font: 400 clamp(17px, 1.5vw, 19px)/1.5 var(--sans); }
.ar-sentence__more + .ar-sentence__more { margin-top: 6px; }
.ar-sentence__run + .ar-sentence__more { color: var(--fg); font-size: clamp(19px, 2vw, 24px); }
.ar-sentence__more a { color: inherit; padding: 0; display: inline; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.ar-sentence__more a:hover { text-decoration-color: currentColor; }
.ar-sentence__more a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: 2px; }
.ar-sentence__more--old a { color: var(--fg); }
@media (max-width: 720px) {
  .ar-sentence__more a { position: relative; }
  .ar-sentence__more a::after { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 46px; transform: translateY(-50%); }
}
.work { padding-bottom: 0; }
.ar-sentence { padding-top: clamp(40px, 5vw, 64px); }
.love > p, .love--small p { text-wrap: pretty; }

/* ---------- critic round 3 ---------- */
/* phones: kayaks, climbing and road trips run full width, so they get the same heading size and spacing as every other love */
@media (max-width: 720px) {
  .smalls:not(.smalls--made) { gap: var(--gap); }
  .smalls:not(.smalls--made) .love--small h2 { font-size: clamp(34px, 5.6vw, 57px); }
  .smalls:not(.smalls--made) .love--small figure { margin-top: 24px; }
}
/* "All of it is on alsobyadam.com" is gone (the Say hi photo and the footer already link there), so the older-work line stays quiet */
.ar-sentence__run + .ar-sentence__more--old { color: var(--fg-soft); font-size: clamp(17px, 1.5vw, 19px); }

/* Adam's pick, 2026-11-03 (font chooser F1): the big sentence and every heading in the middle
   use Cormorant Garamond 500, the same face as "Adam Raabe" on the top photo; text stays Inter. */
.run, .love h2, .ar-sentence__run { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; letter-spacing: 0; }
.run { line-height: 1.06; }
.love h2 { line-height: 1.02; }
.ar-sentence__run { line-height: 1.1; }
.work a[style*="--c"] { font-weight: 600; }
