/* The front door — yagenrok.com, the one public page.
   Modernist theme, same language as archive.css but self-contained: this page
   loads nothing else, so it stays small and fast.

   Converted from the Claude Design artboard "Family Site" (the onDoor screen).
   The mockup styled everything with inline style="" attributes; the site's CSP
   forbids those outright, so every one of them lives here as a real rule. */

/* Same two subsets archive.css uses. The browser fetches each file once and
   reuses it across pages, so declaring them twice costs nothing. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #24212b;
  --ink-2: #2c2935;
  --ink-3: #322e3c;
  --paper: #f7f6f8;
  --accent: #ff563c;
  --dim: rgba(247, 246, 248, 0.64);
  --dim-2: rgba(247, 246, 248, 0.58);
  --line: rgba(247, 246, 248, 0.12);
  --glass-2: rgba(247, 246, 248, 0.08);
  --glass-edge: rgba(247, 246, 248, 0.14);
  --glass-lit: rgba(255, 255, 255, 0.22);
  --blur: saturate(180%) blur(20px);
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.34);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}


*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--paper);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;

  /* Two panels side by side; auto-fit collapses them to one column below
     ~680px without a media query having to say so. */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: rgba(255, 86, 60, 0.28); }

/* --- left panel --------------------------------------------------------- */

.door {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;   /* brand · headline · footer */
  gap: 40px;
  padding: 28px 40px 40px;
  min-height: 100vh;

  /* Two soft lights and a set of vertical rules, so the flat ink has some
     depth without needing an image. */
  background-image:
    radial-gradient(90% 70% at 8% 0%, var(--ink-3) 0%, rgba(32, 30, 29, 0) 62%),
    radial-gradient(70% 60% at 0% 100%, rgba(255, 86, 60, 0.16) 0%, rgba(32, 30, 29, 0) 70%),
    repeating-linear-gradient(90deg, rgba(248, 244, 244, 0.05) 0 1px, rgba(248, 244, 244, 0) 1px 88px);
}

/* --- brand, with the portrait that peeks out on hover ------------------- */

.brand { position: relative; justify-self: start; }

.brand-name {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  cursor: default;
}
.brand-name b {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--paper);
}
.brand-name span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim-2);
}

/* Decorative flourish: hidden until the brand is hovered or focused. It is
   aria-hidden, so a screen reader never announces a photo nobody can reach. */
.brand-peek {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  width: 420px;
  max-width: 78vw;
  padding: 10px;
  background: var(--ink-2);
  border: 1px solid rgba(248, 244, 244, 0.2);
  box-shadow: 0 24px 60px rgba(23, 22, 21, 0.6);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 180ms ease-out, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.brand:hover .brand-peek,
.brand:focus-within .brand-peek {
  opacity: 1;
  transform: translateY(0);
}
/* Framed slightly tighter than the photo and pulled to the right, which trims
   the empty left edge and brings all three men properly into the frame. */
.brand-peek img {
  width: 100%;
  height: auto;            /* without this the img's height attribute wins
                              and aspect-ratio below is ignored entirely */
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 78% center;
  background: var(--ink);
}

/* --- headline ----------------------------------------------------------- */

.door-main {
  display: flex;
  align-items: center;
}
.door-copy { max-width: 640px; }

.door-copy h1 {
  margin: 0;
  font-weight: 800;
  /* Scales with the viewport instead of stepping at breakpoints. */
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.door-copy p {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.6;
  max-width: 44ch;
  color: var(--dim);
}

.door-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease-out, color 160ms ease-out;
}
.door-cta:hover,
.door-cta:focus-visible {
  background: var(--accent);
  color: var(--ink);
}
.door-cta svg { flex: none; }

/* --- footer ------------------------------------------------------------- */

.door-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim-2);
}

/* --- right panel: the photograph ---------------------------------------- */

.door-plate {
  position: relative;
  background: var(--ink-2);
  border-left: 1px solid var(--line);
  min-height: 42vh;          /* keeps it visible once the columns stack */
  overflow: hidden;
}
.door-plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Darkens the foot of the photo so it settles against the page. */
.door-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 30, 29, 0.15) 0%, rgba(32, 30, 29, 0.55) 100%);
}

/* --- motion ------------------------------------------------------------- */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.door-copy > * { animation: riseIn 620ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.door-copy p        { animation-delay: 90ms; }
.door-copy .door-cta { animation-delay: 170ms; }

/* Anyone who has asked their system for less motion gets none of it. */
@media (prefers-reduced-motion: reduce) {
  .door-copy > *,
  .brand-peek,
  .door-cta {
    animation: none;
    transition: none;
  }
}

@media (max-width: 680px) {
  /* On a phone the two panels stack. Leaving the text panel at 100vh pushed
     the photograph below a screenful of empty space, where it read as an
     afterthought -- so the cats lead instead, and the panel sizes to its
     content rather than reserving a whole viewport. */
  .door {
    min-height: auto;
    padding: 24px 22px 32px;
    gap: 28px;
  }
  .door-plate {
    order: -1;
    min-height: 48vh;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  /* Weight the crop upward so the cats stay in frame as the panel shortens. */
  .door-plate img { object-position: center 32%; }
  /* The gradient exists to settle the photo against the text below it; with
     the photo on top, it should darken the bottom edge only, more gently. */
  .door-plate::after {
    background: linear-gradient(180deg, rgba(32, 30, 29, 0) 45%, rgba(32, 30, 29, 0.45) 100%);
  }
  .door-copy h1 { font-size: clamp(38px, 11vw, 56px); }
}

/* --- not found ----------------------------------------------------------- */

/* One column: there is no photograph to sit beside, and a half-empty split
   would read as something failing to load, which is the wrong impression on
   the page whose whole job is to say nothing is broken. */
.page-404 { grid-template-columns: minmax(0, 1fr); }
.page-404 .door { min-height: 100vh; }

.four-oh-four {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent);
}
.page-404 .door-copy h1 { font-size: clamp(38px, 6vw, 74px); }

.four-oh-four-hint {
  margin-top: 30px;
  font-size: 14px;
  color: var(--dim);
}
.four-oh-four-hint a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.four-oh-four-hint a:hover { color: var(--paper); }

/* --- materials, matching the archive ------------------------------------- */

.door-cta { border-radius: var(--r-pill); }
.brand-peek {
  border-radius: var(--r-md);
  background: var(--glass-2);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-lit), var(--shadow-md);
}
.brand-peek img { border-radius: var(--r-md); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .brand-peek { background: var(--ink-2); }
}
