:root {
  color-scheme: light;
  --paper: #f9f5ee;
  --gallery: #f0e9df;
  --ink: #292820;
  --muted: #60584d;
  --accent: #93442f;
  --rule: #d8cbbd;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
}

h1, h2, h3, p, figure { margin: 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; }

h2 {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -.05em;
}

a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

section { scroll-margin-block-start: 1.25rem; }

img { display: block; width: 100%; height: auto; }

.shell { width: min(100% - 6rem, 78rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  z-index: 1;
  inset: .5rem auto auto .5rem;
  padding: .5rem 1rem;
  background: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--rule); }

.header-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-block: 1.15rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font: 1.4rem/1 var(--serif);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  aspect-ratio: 1;
  background: var(--accent);
  border-radius: 50%;
  color: white;
  font: italic 1.15rem/1 var(--serif);
}

nav { display: flex; flex-wrap: wrap; gap: .35rem clamp(.8rem, 2.6vw, 2.55rem); }

nav a {
  display: inline-block;
  padding-block: .35rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover, .brand:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .3em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2.25rem, 5vw, 5rem);
  padding-block: clamp(3rem, 6vw, 6rem);
}

.demo-label, .category {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.demo-label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .38rem .75rem;
  border: 1px solid #dcbcae;
  border-radius: 2rem;
  background: #f5e8df;
}

.demo-label span { width: .38rem; aspect-ratio: 1; background: currentColor; border-radius: 50%; }

.hero h1 {
  margin-block: 1.1rem 1.2rem;
  font-size: clamp(3.35rem, 6.7vw, 6.25rem);
  line-height: .96;
  letter-spacing: -.065em;
}

.hero-name {
  display: block;
  margin-bottom: .65rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.hero h1 em { display: block; color: var(--accent); font-weight: 400; }

.hero-intro { max-width: 34ch; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.13rem); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
  margin-top: 1.65rem;
  padding: .78rem 1.15rem;
  border-radius: .2rem;
  background: var(--accent);
  color: #fffaf5;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}

.button:hover { background: #743523; }

.button span { font-size: 1.1rem; line-height: 1; }

.hero-art {
  padding: .6rem;
  border: 1px solid var(--rule);
  background: #fcf8f2;
}

.hero-art figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .25rem 1rem;
  flex-wrap: wrap;
  padding: .6rem .24rem .12rem;
  color: var(--muted);
  font-size: .75rem;
}

.hero-art cite { color: var(--ink); font-family: var(--serif); font-size: .98rem; }

.portfolio, .subjects { background: var(--gallery); border-block: 1px solid var(--rule); }

.portfolio, .about, .subjects, .contact { padding-block: clamp(3.4rem, 6vw, 6rem); }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.section-heading p { max-width: 40ch; color: var(--muted); }

.work-grid, .subject-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.3vw, 2rem);
}

.work {
  padding: .5rem;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.work figcaption { padding: .88rem .6rem .65rem; }
.work h3, .subject-grid h3 { font-size: clamp(1.3rem, 2.1vw, 1.85rem); line-height: 1.15; }
.work h3 { margin-block: .3rem .4rem; }
.work-note { color: var(--muted); font-size: .82rem; }

.about, .contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1.25rem 2rem;
}

.about-copy { max-width: 55ch; }
.about-copy > p + p { margin-top: 1rem; }
.about-copy p:last-child, .subject-grid p, .contact p + p { color: var(--muted); }
.lead { font: 1.5rem/1.45 var(--serif); }
.subject-grid { margin-top: 2rem; }
.subject-grid > div { padding-top: 1.1rem; border-top: 2px solid var(--accent); }
.subject-grid p { margin-top: .55rem; max-width: 31ch; }

.contact-address {
  color: var(--accent);
  font: clamp(1.3rem, 3.5vw, 2.2rem)/1.2 var(--serif);
  overflow-wrap: anywhere;
}

.contact p + p { margin-top: .55rem; }
.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: .85rem; }
.footer-name { color: var(--ink); font: 1.2rem/1.2 var(--serif); }

@media (max-width: 900px) {
  .shell { width: calc(100% - 3.5rem); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 2.5rem); }
  .header-inner { gap: .6rem; padding-block: .85rem; }
  nav { width: 100%; justify-content: space-between; gap: .2rem .55rem; }
  nav a { font-size: .8rem; }
  .hero, .about, .contact, .subject-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 1.8rem; }
  .hero h1 { font-size: clamp(3.35rem, 12vw, 4.8rem); }
}

@media (max-width: 430px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
