/* happybyname.net. Built from Paper "happybyname.net", page 03 V1 (8 Oct 2026).
   Desktop values come from the 1440 artboards, phone values from Home 390. */

/* Fonts, self-hosted from Google Fonts (SIL Open Font License), 9 Oct 2026. */
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/hanken-grotesk-400-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: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/hanken-grotesk-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Zilla Slab"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/zilla-slab-400-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: "Zilla Slab"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/zilla-slab-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Zilla Slab"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/zilla-slab-500-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: "Zilla Slab"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/zilla-slab-500-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #FFFFFF; --ink: #111111; --shingle: #5A5E63; --sea-fog: #E9ECEC;
  --sun: #F9EF00; --deep-water: #0F3B4C; --ink-line: #3A3A3A; --fog-line: #CDD2D2; --muted-on-ink: #B9BBC2;
  --display: "Zilla Slab", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --gutter: 96px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/28px var(--body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 30; padding: 8px 16px; background: var(--sun); color: var(--ink); border-radius: 10px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }

/* Type */
.display { font: 500 136px/128px var(--display); letter-spacing: -0.03em; }
.h2 { font: 400 56px/60px var(--display); letter-spacing: -0.02em; }
.lead { font-size: 24px; line-height: 36px; }
.label { font-size: 14px; line-height: 20px; color: var(--shingle); }
.phone-only { display: none; }

/* Links: underlined text links, as in Paper. Nav links draw their underline in on hover. */
.link { text-decoration: underline 1px; text-underline-position: from-font; }
.link:hover { text-decoration-thickness: 2px; }
.link-deep { color: var(--deep-water); }
.nav a { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size .15s ease-out; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { background-size: 100% 1px; }

/* Buttons: squircle corners scaled from the logo (30 on 500). */
.button { display: inline-block; padding: 14px 28px; border-radius: 10px; text-decoration: none; font-size: 18px; line-height: 28px;
  transition: background-color .15s ease-out, color .15s ease-out; }
.button-sun { background: var(--sun); color: var(--ink); }
.button-sun:hover, .button-sun:focus-visible { background: var(--paper); }
.button-ink { background: var(--ink); color: var(--paper); }
/* Ink buttons shift to sun on hover; on the sun band that would vanish, so they shift to paper there. */
.button-ink:hover, .button-ink:focus-visible { background: var(--sun); color: var(--ink); }
.on-sun .button-ink:hover, .on-sun .button-ink:focus-visible { background: var(--paper); color: var(--ink); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 32px var(--gutter); }
.site-header .logo img { width: 48px; height: 48px; }
.nav { display: flex; gap: 40px; }
.menu-toggle { display: none; }
.ink { background: var(--ink); color: var(--paper); }

/* Hero */
.hero { display: flex; flex-direction: column; min-height: clamp(640px, 100svh, 1000px); }
.hero-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 56px; padding: 0 var(--gutter) 72px; }
.hero h1 { max-width: 1100px; position: relative; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-top: 32px; border-top: 2px solid var(--paper); }
.hello { display: flex; align-items: center; gap: 24px; }
.hello img { width: 88px; height: 88px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.hello p { max-width: 600px; }
.actions { display: flex; align-items: center; gap: 32px; flex-shrink: 0; }

/* Typed headline: the real text holds the space (no layout shift); the typed copy sits on top. */
.typed-ghost { color: transparent; }
.typed-live { position: absolute; inset: 0; }
.typing .typed-live::after { content: ""; display: inline-block; width: 0.07em; height: 0.85em; margin-left: 0.06em;
  vertical-align: -0.05em; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Two doors */
.doors { display: flex; gap: 64px; padding: 128px var(--gutter) 96px; }
.door { flex: 1; display: flex; flex-direction: column; gap: 16px; border-top: 2px solid var(--ink); padding-top: 24px; }
.door p:last-child { max-width: 520px; }

/* Coaching and advisory bands */
.band { display: flex; gap: 64px; padding: 128px var(--gutter); }
.band > * { flex: 1; min-width: 0; }
.band-intro { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.band-intro .h2 { max-width: 592px; }
.band-intro p { max-width: 520px; }
.fog { background: var(--sea-fog); }
.fog .band-intro .h2 { max-width: 540px; }
.fog .band-intro p { max-width: 480px; }
.facts { margin: 0; }
.fact { display: flex; gap: 32px; padding-block: 24px; border-top: 1px solid var(--ink-line); }
.fact:first-child { border-top-color: var(--paper); }
.fact dt { width: 160px; flex-shrink: 0; color: var(--muted-on-ink); }
.fact dd { margin: 0; flex: 1; }
.fog .fact { border-top-color: var(--fog-line); }
.fog .fact:first-child { border-top-color: var(--ink); }
.fog .fact dt { color: var(--shingle); }

/* About */
.about { display: flex; align-items: flex-start; gap: 80px; padding: 128px var(--gutter) 96px; }
.about img { width: 360px; height: 420px; border-radius: 24px; object-fit: cover; flex-shrink: 0; }
.about-text { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; max-width: 620px; }

/* Proof and writing */
.proof { display: flex; gap: 64px; padding: 96px var(--gutter) 128px; }
.proof > div { flex: 1; display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--ink); padding-top: 24px; align-items: flex-start; }
.proof blockquote { margin: 0; font: 400 24px/36px var(--display); max-width: 560px; }
.proof .source { color: var(--shingle); }
.proof .blurb { max-width: 480px; }

/* Closing */
.closing { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; padding: 128px var(--gutter); background: var(--sun); }
.closing-text { display: flex; flex-direction: column; gap: 32px; }
.closing-text .lead { max-width: 620px; }
.closing-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; flex-shrink: 0; }

/* Footer */
.site-footer { display: flex; justify-content: space-between; align-items: center; padding: 40px var(--gutter); font-size: 14px; line-height: 20px; }
.site-footer .brand { display: flex; align-items: center; gap: 20px; }
.site-footer .brand img { width: 56px; height: 56px; }
.site-footer ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Inner pages: Blog, Contact, 404 */
.page { display: flex; flex-direction: column; min-height: clamp(640px, 100svh, 1000px); }
.page-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 32px; padding: 0 var(--gutter) 96px; }
.page-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-top: 32px; border-top: 2px solid currentColor; }
.page-row .lead { max-width: 620px; }
.page.ink .page-body { gap: 56px; padding-bottom: 72px; }
.contact-body { flex: 1; display: flex; align-items: flex-end; gap: 64px; padding: 64px var(--gutter) 96px; }
.contact-body > div:first-child { flex: 1; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.contact-body .lead { max-width: 560px; }
.contact-facts { width: 480px; flex-shrink: 0; margin: 0; }
.contact-facts .fact { border-top-color: var(--sea-fog); }
.contact-facts .fact:first-child { border-top-color: var(--ink); }
.contact-facts .fact dt { width: 120px; color: var(--shingle); }

/* Reveals: fade up 12px once as they come into view. Hero pieces wait for the typing. */
.js-motion .reveal { opacity: 0; translate: 0 12px; transition: opacity .6s ease, translate .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0s); }
.js-motion .reveal.in { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal { opacity: 1; translate: none; transition: none; }
  .typing .typed-live::after { display: none; }
  .button, .nav a { transition: none; }
}

/* Middle widths: shrink the big type so the layout holds between phone and 1440. */
@media (max-width: 1279px) {
  :root { --gutter: 64px; }
  .display { font-size: clamp(88px, 9.4vw, 136px); line-height: 0.94; }
  .about img { width: 300px; height: 350px; }
  .about { gap: 56px; }
}
@media (max-width: 1099px) {
  .hero-row, .closing { flex-wrap: wrap; }
  .closing-actions { align-items: flex-start; }
  .contact-body { flex-direction: column; align-items: stretch; }
  .contact-facts { width: 100%; }
}

/* Phones: Home 390 artboard. */
@media (max-width: 899px) {
  :root { --gutter: 24px; }
  .desk-only { display: none; }
  .phone-only { display: inline; }
  .display { font-size: 60px; line-height: 58px; }
  .h2 { font-size: 36px; line-height: 40px; }
  .lead { font-size: 18px; line-height: 28px; }
  .label { font-size: 16px; line-height: 24px; }

  .site-header { padding: 24px var(--gutter); flex-wrap: wrap; row-gap: 16px; }
  .site-header .logo img { width: 44px; height: 44px; }
  /* The toggle only shows once JS can work it; without JS the nav stays open. */
  .menu-toggle { background: none; border: 0; padding: 0; font: inherit; line-height: 44px; color: inherit; cursor: pointer; }
  .js .menu-toggle { display: block; }
  .js .nav { display: none; }
  .nav { width: 100%; flex-direction: column; gap: 0; }
  .nav a { line-height: 44px; }
  .menu-open .nav { display: flex; }

  .hero { min-height: clamp(600px, 100svh, 900px); }
  .hero-body { gap: 28px; padding: 0 var(--gutter) 40px; }
  .hero-row { flex-direction: column; align-items: stretch; gap: 28px; padding-top: 24px; }
  .hello { align-items: flex-start; gap: 16px; }
  .hello img { width: 56px; height: 56px; border-radius: 12px; }
  .actions { gap: 24px; }
  .actions .button { order: -1; }
  .actions .link { line-height: 44px; }

  .doors { flex-direction: column; gap: 32px; padding: 56px var(--gutter); }
  .door { gap: 8px; padding-top: 20px; }

  .band { flex-direction: column; gap: 20px; padding: 64px var(--gutter); }
  /* Phone order, as in Paper: heading, text, facts, then the ask link. */
  .band-intro { display: contents; }
  .band .facts { order: 2; }
  .band .ask { order: 3; line-height: 44px; align-self: flex-start; }
  .fact { flex-direction: column; gap: 4px; padding-block: 16px; }
  .fact dt { width: auto; font-size: 16px; line-height: 24px; }

  .about { flex-direction: column; gap: 32px; padding: 0 var(--gutter) 48px; }
  .about img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 20px; }
  .about-text { gap: 20px; padding-top: 0; }
  .about-text .link { display: inline-block; line-height: 44px; }

  .proof { flex-direction: column; gap: 40px; padding: 16px var(--gutter) 64px; }
  .proof > div { gap: 12px; padding-top: 20px; }
  .proof blockquote { font-size: 22px; line-height: 32px; }
  .proof .source { font-size: 16px; line-height: 24px; }
  .proof .link { line-height: 44px; }

  .closing { flex-direction: column; align-items: flex-start; gap: 24px; padding: 64px var(--gutter); }
  .closing-text { gap: 24px; }
  .closing-actions { align-items: flex-start; gap: 0; }
  .closing-actions .link { line-height: 44px; margin-top: 4px; }

  .site-footer { flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px var(--gutter); font-size: 16px; line-height: 24px; }
  .site-footer .brand { flex-direction: column; align-items: flex-start; }
  .site-footer ul { flex-direction: column; gap: 8px; }
  .site-footer a { display: inline-block; line-height: 44px; margin-block: -10px; }

  .page-body { padding-bottom: 48px; }
  .page.ink .page-body { gap: 28px; padding-bottom: 40px; }
  .page-row { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 24px; }
  /* 44px tall to tap, negative margins keep the spacing from Paper. */
  .page-row .link { line-height: 44px; margin-block: -8px; }
  .contact-facts .link { display: inline-block; line-height: 44px; margin-block: -8px; }
  .contact-body { padding: 32px var(--gutter) 48px; gap: 40px; justify-content: flex-end; }
  .contact-body > div:first-child { flex: none; }
}
