:root {
  color-scheme: light;
  --ink: #24332d;
  --ink-soft: #52645b;
  --paper: #f7f5ef;
  --line: #e5e3da;
  --orange: #d9825d;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
main { flex: 1; }
.page-width { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { height: 86px; display: flex; justify-content: space-between; align-items: center; padding-inline: max(32px, calc((100% - 1280px) / 2)); border-bottom: 1px solid rgba(36,51,45,.08); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
.wordmark-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 46% 54%; background: var(--ink); color: #f5f2e8; font-family: var(--serif); font-size: 23px; font-style: italic; line-height: 1; transform: rotate(-7deg); }
.site-nav { display: flex; align-items: center; gap: 38px; }
.site-nav a { text-decoration: none; font-size: 12px; font-weight: 600; color: var(--ink-soft); transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--orange); }
.menu-toggle { display: none; }

.hero { padding: 18px max(32px, calc((100% - 1280px) / 2)) 22px; }
h1, h3, p { margin-top: 0; }
.hero h1 { margin: 0; font-family: "Space Grotesk", var(--sans); font-size: clamp(47px, 5.1vw, 67px); font-weight: 600; line-height: 1.11; letter-spacing: -2.6px; }

.projects-section { padding: 88px 0 98px; background: #f0efe9; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.project-card { overflow: hidden; border: 1px solid rgba(37,55,45,.07); border-radius: 4px; background: #faf9f5; transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(45,58,48,.08); }
.card-sage { --card-accent: #668265; }
.card-content { padding: 17px 16px 19px; }
.card-content h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.card-content p { margin: 0 0 15px; color: #778279; font-size: 10px; line-height: 1.75; }
.card-link { display: inline-flex; align-items: center; gap: 8px; color: var(--card-accent); font-size: 9px; font-weight: 700; text-decoration: none; }
.card-link span { font-size: 14px; transition: transform .2s ease; }
.card-link:hover span { transform: translate(2px,-2px); }
.empty-state { padding: 45px 0; color: var(--ink-soft); font-family: var(--serif); text-align: center; }

.site-footer { border-top: 1px solid #e5e3da; }
.footer-inner { min-height: 85px; display: flex; justify-content: space-between; align-items: center; }
.footer-wordmark { gap: 8px; font-size: 15px; }
.footer-wordmark .wordmark-icon { width: 27px; height: 27px; font-size: 18px; }
.footer-inner > p, .copyright { margin: 0; color: #939b92; font-size: 9px; }
.toast { position: fixed; z-index: 5; right: 24px; bottom: 24px; max-width: calc(100% - 48px); padding: 13px 17px; border-radius: 4px; background: var(--ink); color: white; font-size: 11px; box-shadow: 0 8px 24px rgba(20,34,27,.2); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 2px solid #c77753; outline-offset: 4px; }
@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 620px) {
  .page-width { width: min(100% - 40px, 460px); }
  .site-header { height: 70px; padding-inline: 20px; }
  .wordmark { font-size: 18px; }
  .wordmark-icon { width: 31px; height: 31px; }
  .menu-toggle { width: 38px; height: 38px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { width: 15px; height: 1px; background: var(--ink); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .site-nav { position: absolute; z-index: 4; top: 69px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; }
  .hero { padding: 15px 20px 18px; }
  .hero h1 { font-size: clamp(48px, 12vw, 63px); letter-spacing: -2px; }
  .projects-section { padding: 65px 0 68px; }
  .project-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 15px; }
  .card-content { padding: 16px 17px 18px; }
  .card-content h3 { font-size: 19px; }
  .card-content p { font-size: 11px; }
  .footer-inner { min-height: 106px; flex-wrap: wrap; justify-content: space-between; gap: 0 15px; padding-block: 18px; }
  .footer-inner > p { order: 3; width: 100%; margin-top: -3px; }
  .copyright { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
