@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/dm-sans-regular.ttf') format('truetype');
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/dm-sans-medium.ttf') format('truetype');
}
:root {
  --paper: #f5f2eb; --ink: #262d26; --muted: #62665b; --line: #d3d3c7;
  --accent: #485b35; --sans: 'DM Sans', Arial, sans-serif;
  --text-body: 1rem; --text-small: .875rem; --text-eyebrow: .75rem;
  --text-heading: clamp(2rem, 1.5rem + 2vw, 3rem);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans);
  font-size: var(--text-body); line-height: 1.6; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 6px; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:hover, a:hover { opacity: .75; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; z-index: 10; padding: 14px; background: var(--paper);
  }
.skip-link:focus { top: 0; }
.shell { max-width: 1500px; margin: auto; padding: 0 5%; }
header {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 112px; border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; width: 100px; flex-shrink: 0; }
.brand img { display: block; width: 100%; height: auto; }
nav { display: flex; gap: 32px; }
nav a { color: var(--muted); text-decoration: none; padding: 10px 0; font-size: var(--text-body); }
nav a[aria-current='page'] { color: var(--ink); border-bottom: 1px solid var(--ink); }
.location { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .18em;
  }
.forest {
  position: relative; isolation: isolate; clip-path: inset(0); padding: 40px 5%;
  border-bottom: 1px solid var(--line);
}
.forest::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(#20302218, #20302218),
    url('/assets/images/redwoods.png') center / cover;
}
.glass {
  width: 100%; max-width: 820px; padding: 40px 48px; margin: 0 auto;
  background: #f5f2ebe6;
  border: 1px solid #ffffff80; box-shadow: 0 18px 60px #13211330;
}
.eyebrow { font-size: var(--text-eyebrow); line-height: 1.5;
  letter-spacing: .12em; text-transform: uppercase; }
.glass > .eyebrow { margin: 0 0 20px; }
h1 { font-size: var(--text-heading); font-weight: 400; line-height: 1.15;
  letter-spacing: -.045em; text-wrap: balance; margin: 0 0 24px; }
h1 em { font-style: normal; font-weight: 400; color: var(--muted); }
.glass > p:not(.eyebrow), blockquote {
  font-size: var(--text-body); line-height: 1.7; color: var(--muted); margin: 0 0 18px;
}
blockquote { color: var(--ink); }
.glass > :last-child { margin-bottom: 0; }
.gallery-toolbar { display: flex; gap: 12px; justify-content: space-between;
  align-items: center; padding: 20px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; }
.filters button { border: 0; background: none; color: var(--muted); padding: 8px 0;
  font-size: var(--text-body); min-height: 44px; }
.filters button[aria-pressed='true'] { color: var(--ink); text-decoration: underline;
  text-underline-offset: 7px; }
#count { font-size: var(--text-small); white-space: nowrap; letter-spacing: .1em; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 38px 24px; }
.art { min-width: 0; }
.art:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; }
.art-open { display: block; background: var(--paper); position: relative; overflow: hidden; }
.art-open img { width: 100%; height: 240px; display: block; object-fit: contain;
  transition: transform .3s; }
.art:nth-child(5n + 1) img { height: 564px; }
.art-open:hover { opacity: 1; }
.art-open:hover img { transform: scale(1.025); }
.art-open::after { content: 'View work ↗'; position: absolute; bottom: 12px; right: 12px;
  color: white; background: var(--ink); padding: 9px 12px; font-size: 11px;
  opacity: 0; transition: opacity .2s; }
.art-open:hover::after, .art-open:focus-visible::after { opacity: 1; }
.caption { margin-top: 13px; }
.caption h2 { font-size: var(--text-body); margin: 0 0 5px; font-weight: 500; }
.caption p { color: var(--muted); font-size: var(--text-small); margin: 0; }
footer { padding: 25px 0; border-top: 1px solid var(--line); display: flex;
  justify-content: space-between; gap: 20px; color: var(--muted); font-size: var(--text-small); }
body:has(.collection) footer { margin-top: 70px; }
form { margin-top: 24px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.send-button:disabled { cursor: not-allowed; opacity: .5; }
form label { display: grid; gap: 9px; font-size: var(--text-body); margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
input, textarea { width: 100%; min-width: 0; border: 1px solid #aaa99c; background: #f5f2eb80;
  padding: 14px; color: var(--ink); font-size: var(--text-body); }
input::placeholder, textarea::placeholder { font: inherit; color: var(--muted); opacity: 1; }
textarea { resize: vertical; min-height: 110px; }
.send-button { background: var(--ink); color: var(--paper); border: 0;
  padding: 15px 24px; font-size: var(--text-body); }
.form-note { font-size: var(--text-small); line-height: 1.6; margin: 14px 0 18px; color: var(--muted); }
.cf-turnstile { margin: 12px 0; }
.notice { padding: 16px; border: 1px solid var(--line); background: var(--paper); }
dialog { border: 1px solid var(--line); padding: 28px; max-width: 920px;
  width: calc(100% - 32px); max-height: 90dvh; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #101712cc; }
#close { display: block; margin-left: auto; border: 0; color: var(--ink);
  background: none; padding: 12px; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: center; }
.detail img { width: 100%; max-height: 65dvh; object-fit: contain; }
.detail h2 { font-size: 32px; font-weight: 400; line-height: 1.1; }
.detail p { font-size: var(--text-body); line-height: 1.8; color: var(--muted); }
.detail a { display: inline-block; margin-top: 20px; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width: 800px) {
  .location { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art:nth-child(5n + 1) { grid-column: auto; grid-row: auto; }
  .art-open img, .art:nth-child(5n + 1) img { height: 300px; }
}
@media (max-width: 600px) {
  header { flex-wrap: wrap; padding: 25px 0; gap: 20px; }
  nav { gap: 20px; }
  .forest { padding: 24px 14px; }
  .glass { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .gallery-toolbar { flex-wrap: wrap; }
  .grid { grid-template-columns: 1fr; gap: 30px; }
  .detail { grid-template-columns: 1fr; gap: 15px; }
  .detail img { max-height: 35dvh; }
  footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::after { transition: none !important; } }

form .confirmation-option { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.confirmation-option input { width: 18px; height: 18px; padding: 0; flex: 0 0 18px;
  accent-color: #293129; cursor: pointer; }
