@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root { color-scheme: light; --ink: #1c1c1c; --text: #2a2a2a; --muted: #5f5f5f; --rule: #e0e0e0; --soft: #f4f4f3; --underline: #8a8a8a; --serif: "Source Serif 4", Georgia, "Times New Roman", serif; }
html { font-size: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
.container { box-sizing: border-box; width: 100%; max-width: 1040px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
a, a:visited { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--underline); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
p { margin: 0 0 16px; }

/* Menu */
body { border-top: 3px solid var(--ink); }
.topbar { position: relative; z-index: 10; }
.menu { position: absolute; top: 20px; right: 32px; }
.menu summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; box-sizing: border-box; border: 1px solid var(--rule); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { border-color: var(--underline); }
.menu summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.menu .i-close, .menu[open] .i-open { display: none; }
.menu[open] .i-close { display: block; }
.menu nav { position: absolute; top: 52px; right: 0; min-width: 196px; padding: 6px 0; background: #fff; border: 1px solid var(--rule); border-top: 2px solid var(--ink); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); text-align: left; }
.menu nav a, .menu nav a:visited { display: block; padding: 10px 20px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; line-height: 1.4; }
.menu nav a:hover { background: var(--soft); }

/* Logo lockup */
.lockup, .lockup:visited { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 0 0 32px; color: var(--ink); text-decoration: none; }
.lockup svg { width: 60px; height: auto; flex: none; }
.lockup span { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* Hero */
.hero { padding: 88px 0 96px; text-align: center; border-bottom: 1px solid var(--rule); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.2; letter-spacing: -0.005em; color: var(--ink); margin: 0 auto; max-width: 14em; text-wrap: balance; }

/* Sections */
section { padding: 64px 0; text-align: center; }
#work { padding-top: 88px; }
#contact { padding-bottom: 104px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: 1.625rem; line-height: 1.25; color: var(--ink); margin: 0 0 48px; }
h2::before { content: ""; display: block; width: 40px; margin: 0 auto 22px; border-top: 1px solid var(--ink); }
h3 { font-family: var(--serif); font-weight: 400; font-size: 1.1875rem; line-height: 1.35; color: var(--ink); margin: 0 0 10px; }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.cols p { margin: 0; color: var(--muted); font-size: 0.9875rem; line-height: 1.6; text-wrap: pretty; }
.num { display: block; font-family: var(--serif); font-size: 0.9375rem; color: var(--muted); margin-bottom: 10px; }

dl { display: grid; grid-template-columns: 1fr 1fr; max-width: 680px; margin: 0 auto; font-size: 0.9875rem; line-height: 1.55; border-top: 1px solid var(--ink); }
dt, dd { padding: 16px 0; border-bottom: 1px solid var(--rule); }
dt { color: var(--muted); text-align: right; padding-right: 24px; }
dd { margin: 0; color: var(--ink); text-align: left; padding-left: 24px; text-wrap: pretty; }

.contact .email { font-family: var(--serif); font-size: 1.125rem; line-height: 1.4; margin: 0 0 6px; }
.contact p:not(.email) { color: var(--muted); font-size: 0.9875rem; margin: 0; }

/* Footer */
footer { background: var(--soft); padding: 44px 0 48px; color: var(--muted); font-size: 0.8125rem; text-align: center; }
.foot .brand, .foot .brand:visited { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--ink); text-decoration: none; }
.foot .brand svg { width: 28px; height: auto; }
.foot .brand span { font-family: var(--serif); font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; }
footer p { margin: 0 0 6px; }
footer a, footer a:visited { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* Text pages */
.page { max-width: 720px; padding-top: 72px; padding-bottom: 88px; }
.page .lockup { margin-bottom: 56px; }
.page .lockup svg { width: 44px; }
.page .lockup span { font-size: 1rem; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 4.2vw, 2.25rem); line-height: 1.2; color: var(--ink); margin: 0 0 8px; text-align: center; }
.page .updated { color: var(--muted); font-size: 0.875rem; margin: 0 0 48px; text-align: center; }
.page h2 { font-size: 1.25rem; margin: 36px 0 10px; text-align: left; }
.page h2::before { display: none; }

@media (max-width: 820px) {
  .cols { grid-template-columns: 1fr; gap: 40px; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .menu { top: 14px; right: 20px; }
  .hero { padding: 72px 0 60px; }
  .lockup { gap: 12px; margin-bottom: 26px; }
  .lockup svg { width: 46px; }
  .lockup span { font-size: 1rem; letter-spacing: 0.13em; }
  section { padding: 44px 0; }
  #work { padding-top: 60px; }
  #contact { padding-bottom: 72px; }
  h2 { font-size: 1.4375rem; margin-bottom: 36px; }
  .cols { gap: 32px; }
  dl { grid-template-columns: 1fr; }
  dt, dd { text-align: center; padding-left: 0; padding-right: 0; }
  dt { padding: 14px 0 0; border-bottom: 0; }
  dd { padding: 2px 0 14px; }
  .contact .email { font-size: 1.0625rem; }
  .page { padding-top: 72px; padding-bottom: 64px; }
  .page .lockup { margin-bottom: 40px; }
  .page .lockup svg { width: 38px; }
  .page .lockup span { font-size: 0.875rem; }
}
