*, *::before, *::after { box-sizing: border-box; }
html { max-width: 100%; scroll-behavior: smooth; background: var(--paper); overflow-x: clip; }
body { max-width: 100%; margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.65; overflow-x: clip; text-rendering: optimizeLegibility; }
body::selection { background: var(--yellow); color: var(--ink); }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 200; top: 8px; left: 12px; transform: translateY(-150%); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: white; transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.section { position: relative; padding: clamp(100px, 12vw, 180px) 0; scroll-margin-top: 96px; }
main > section { min-width: 0; border: 10px solid var(--ink); border-radius: 18px; background-clip: padding-box; }
.eyebrow { width: fit-content; margin: 0 0 18px; padding: 3px 7px 2px; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 900; letter-spacing: .22em; line-height: 1.2; text-transform: uppercase; }
.section-heading { width: var(--content); margin: 0 auto clamp(60px, 8vw, 110px); }
.section-heading h2, .interests-intro h2, .guestbook-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(50px, 7vw, 106px); line-height: .94; letter-spacing: -.065em; }
.section-heading h2 em, .interests-intro h2 em, .guestbook-heading h2 em { color: var(--ink); font-family: var(--serif); font-weight: 400; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: .13em; text-underline-offset: .08em; }
.section-heading > p:last-child, .interests-intro > p, .guestbook-heading > p { max-width: 560px; color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 12px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 14px; font-weight: 750; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s; }
.button:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.button--primary { border-color: var(--blue); background: var(--blue); color: white; }
.button--primary:hover { background: var(--blue-deep); }
.button--ghost { background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px); }
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease) var(--delay, 0ms), transform .8s var(--ease) var(--delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 80% 10%, var(--yellow-soft), transparent 26%), var(--paper); }
.error-card { width: min(680px, 100%); padding: clamp(36px, 8vw, 80px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.74); box-shadow: var(--shadow-soft); }
.error-card h1 { margin: 0 0 16px; font-family: var(--display); font-size: clamp(42px, 8vw, 82px); line-height: .98; letter-spacing: -.06em; }
.error-card p:not(.eyebrow) { color: var(--muted); margin-bottom: 28px; }
noscript { position: fixed; z-index: 300; bottom: 12px; left: 12px; right: 12px; padding: 12px; background: var(--ink); color: white; text-align: center; }
