:root {
  color-scheme: light;
  --paper: #f5f5ed;
  --ink: #1a2a24;
  --muted: #4a594d;
  --rule: #bdc7b5;
  --accent: #d7f077;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }
a:focus-visible { outline: 3px solid #526f00; outline-offset: 4px; }
.wrap { width: min(90%, 1336px); margin-inline: auto; }
.skip { position: fixed; top: 0; left: 10px; z-index: 2; padding: .65rem 1rem; transform: translateY(-150%); background: var(--ink); color: white; }
.skip:focus { transform: none; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead { min-height: 82px; border-bottom: 1px solid var(--ink); }
.identity { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: clamp(1rem, 1.6vw, 1.32rem); font-weight: 650; letter-spacing: -.05em; }
.mark { display: grid; grid-template-columns: repeat(2, 10px); grid-template-rows: repeat(2, 10px); gap: 2px; transform: rotate(-10deg); }
.mark i { background: var(--ink); border-radius: 0 65% 0 65%; }
.mark i:nth-child(2), .mark i:nth-child(3) { transform: rotate(90deg); }
nav { display: flex; gap: clamp(1.4rem, 3vw, 3.25rem); }
.navlink { display: inline-block; padding: .6rem 0; font-size: 1rem; font-weight: 550; text-decoration: none; }
.navlink[aria-current="page"], .navlink:hover { text-decoration: underline; text-underline-offset: .36em; text-decoration-thickness: 1.5px; }
.hero { display: grid; grid-template-columns: .90fr 1.1fr; align-items: center; gap: clamp(2rem, 5.4vw, 6rem); padding-block: clamp(2rem, 4.4vw, 4.4rem); }
.hero-copy, .contact-copy { min-width: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(4rem, 7.8vw, 7.55rem); line-height: .91; letter-spacing: -.075em; }
.italic-line { display: block; font-weight: 400; font-style: italic; letter-spacing: -.072em; }
.hero-copy p, .contact-copy > p { max-width: 36ch; margin-top: 1.7rem; font-size: clamp(1.06rem, 1.3vw, 1.26rem); line-height: 1.48; color: var(--muted); }
.button { display: inline-flex; align-items: center; background: var(--accent); color: var(--ink); font-size: 1rem; font-weight: 650; text-decoration: none; border: 1px solid var(--ink); border-radius: 4px; padding: .78rem 1.25rem .85rem; margin-top: 1.65rem; transition: background .18s; }
.button:hover { background: #c3de54; }
.hero-plate { min-width: 0; color: #fff9e6; background: #182f2a; padding: clamp(.55rem, 1.1vw, 1rem); border-radius: 4px; }
.hero-plate a { display: block; }
.hero-plate img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #273830; }
.hero-plate figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .68rem .1rem .04rem; font-size: .86rem; }
.hero-plate figcaption span:first-child { font-weight: 650; }
.hero-plate figcaption span:last-child { color: #d8dfcb; }
.projects { padding-block: 1.9rem clamp(3rem, 6vw, 6rem); border-top: 1px solid var(--ink); scroll-margin-top: 1rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.55rem; }
.section-head h2 { font-size: clamp(2rem, 3.3vw, 3.4rem); line-height: 1.08; letter-spacing: -.06em; }
.section-head > span { font-size: .93rem; color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.2vw, 2.3rem); }
.project { display: flex; flex-direction: column; align-items: start; min-width: 0; scroll-margin-top: 1.5rem; }
.cover { display: block; width: 100%; overflow: hidden; border-radius: 3px; background: #e6e5d9; }
.cover img { aspect-ratio: 1.26; object-fit: contain; width: 100%; height: auto; transition: transform .26s ease; }
.cover:hover img { transform: scale(1.018); }
.meta { margin: 1.12rem 0 .38rem; font-size: .87rem; color: var(--muted); font-weight: 550; }
h3 { font-size: clamp(2rem, 2.8vw, 2.85rem); line-height: 1.06; letter-spacing: -.055em; }
.project p { margin-top: .7rem; line-height: 1.52; font-size: 1rem; max-width: 42ch; }
.details { margin-top: auto; padding-top: 1.1rem; color: var(--muted); font-size: .89rem; line-height: 1.45; }
.text-link { display: inline-block; margin-top: .9rem; font-size: .99rem; font-weight: 650; text-underline-offset: .20em; text-decoration-thickness: 1.1px; }
.text-link:hover, .footer a:hover, .email:hover { color: #4c6420; }
.footer { border-top: 1px solid var(--rule); padding-block: 1.35rem 1.7rem; color: var(--muted); font-size: .91rem; }
.footer a { text-underline-offset: .2em; }
.contact { min-height: 70vh; display: grid; align-items: center; grid-template-columns: 1fr .9fr; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 7vw, 7rem); }
.contact-copy > p { max-width: 39ch; }
.email { display: inline-block; font-size: clamp(1.1rem, 2.3vw, 2.05rem); letter-spacing: -.035em; margin-top: 1.55rem; text-decoration-thickness: 1px; text-underline-offset: .24em; overflow-wrap: anywhere; }
.contact-copy > .contact-tip { font-size: 1rem; max-width: 48ch; padding-top: 1.5rem; margin-top: 1.7rem; border-top: 1px solid var(--rule); }
.contact-art img { width: 100%; height: auto; border-radius: 3px; }
.contact-art figcaption { margin-top: .55rem; font-size: .85rem; color: var(--muted); }
@media (min-width: 1500px) { .wrap { width: min(88%, 1440px); } }
@media (max-width: 850px) {
  .wrap { width: 91%; }
  .hero { grid-template-columns: .96fr 1.04fr; gap: 1.35rem; }
  .work-grid { gap: 1.15rem; }
  .contact { grid-template-columns: 1fr .72fr; }
}
@media (max-width: 680px) {
  .wrap { width: min(89.5%, 520px); }
  .masthead { min-height: 65px; }
  .identity { gap: .45rem; }
  nav { gap: .95rem; }
  .navlink { font-size: .92rem; }
  .hero, .contact { grid-template-columns: 1fr; gap: 1.7rem; padding-block: 2.2rem; }
  h1 { font-size: clamp(3.9rem, 13.3vw, 5.75rem); }
  .hero-copy p { margin-top: 1.10rem; }
  .button { margin-top: 1.1rem; }
  .work-grid { grid-template-columns: 1fr; gap: 2rem; }
  .project + .project { padding-top: 1.4rem; border-top: 1px solid var(--rule); }
  .section-head { margin-bottom: 1rem; }
  .section-head > span { font-size: .80rem; }
  .contact-art { max-width: 330px; }
}
@media (max-width: 360px) {
  .identity { font-size: .93rem; }
  nav { gap: .6rem; }
  .mark { grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
