:root {
  color-scheme: light;
  --ink: #101619;
  --muted: #566064;
  --paper: #f7f4ed;
  --line: rgba(16, 22, 25, .14);
  --blue: #76a8ff;
  --gold: #e4a853;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-underline-offset: .22em; }

.site-header, main, footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { text-decoration: none; font: 700 1.45rem/1 Georgia, serif; letter-spacing: -.03em; }
.wordmark span { color: var(--gold); }
.support-link { color: var(--muted); font-size: .92rem; text-decoration: none; }

.intro { padding: clamp(70px, 12vw, 150px) 0 clamp(74px, 10vw, 124px); max-width: 880px; }
.eyebrow { margin: 0 0 22px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font: 500 clamp(3.1rem, 8.5vw, 7.2rem)/.92 Georgia, serif; letter-spacing: -.065em; }
.lead { max-width: 660px; margin: 36px 0 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); }

.projects { padding: 0 0 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; font: 500 2rem/1.1 Georgia, serif; }
.section-heading p { margin: 0; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project { min-height: 430px; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: 30px; display: flex; flex-direction: column; background: #fff; box-shadow: 0 18px 50px rgba(16, 22, 25, .05); }
.project-chat { background: #11181b; color: #f8f7f3; }
.project-pages { background: #ead9bf; }
.project-topline { display: flex; align-items: center; gap: 12px; font-size: .82rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
.project-symbol { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--blue); color: #0c1823; font-weight: 800; }
.project-symbol.bookmark { background: #173a38; color: #f5ead7; border-radius: 7px 7px 13px 13px; }
.project-copy { margin: auto 0 34px; }
.project h3 { margin: 0 0 18px; font: 500 clamp(2.25rem, 5vw, 4.25rem)/.95 Georgia, serif; letter-spacing: -.045em; }
.project p { max-width: 480px; margin: 0; font-size: 1.08rem; opacity: .76; }
.project > a { align-self: flex-start; text-decoration-thickness: 1px; font-weight: 650; }

footer { min-height: 120px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .9rem; }
footer nav { display: flex; gap: 24px; }
.legal { max-width: 820px; padding: 90px 0 120px; }
.legal h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); margin-bottom: 70px; }
.legal section { padding: 30px 0; border-top: 1px solid var(--line); }
.legal h2 { margin: 0 0 12px; font: 500 1.5rem/1.2 Georgia, serif; }
.legal section p { margin: 0 0 12px; color: var(--muted); }

@media (max-width: 720px) {
  .site-header, main, footer { width: min(100% - 30px, 1120px); }
  .site-header { min-height: 78px; }
  .support-link { font-size: .8rem; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 8px; }
  .project-grid { grid-template-columns: 1fr; }
  .project { min-height: 370px; border-radius: 24px; }
  footer { padding: 28px 0; align-items: flex-start; }
  footer nav { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: no-preference) {
  .project { transition: transform .2s ease, box-shadow .2s ease; }
  .project:hover { transform: translateY(-3px); box-shadow: 0 22px 60px rgba(16, 22, 25, .09); }
}
