/* Display and body faces are self-hosted under web/static/fonts/ (SIL Open
   Font License, see web/static/licenses/): Cormorant Garamond for headings,
   EB Garamond for body text. variable files cover weights 300-700. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/eb-garamond-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/eb-garamond-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/eb-garamond-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/eb-garamond-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  --background: #f9dfe3;
  --edge: #f4d4db;
  --surface: #fffafa;
  --ink: #322c2d;
  --muted: #706365;
  --line: #dfbfc5;
  --accent: #43583c;
  --selected: #d0e2bb;
  --heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'EB Garamond', Georgia, 'Times New Roman', serif;
}

:root[data-style="paper"] {
  --background: #f5f1e8;
  --edge: #ece4d2;
  --surface: #fffcf5;
  --ink: #342e26;
  --muted: #706557;
  --line: #dbd1c0;
  --accent: #775137;
  --selected: #e9decc;
  --heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'EB Garamond', Georgia, 'Times New Roman', serif;
}

:root[data-style="ink"] {
  --background: #f6f6f6;
  --edge: #ececec;
  --surface: #fff;
  --ink: #202020;
  --muted: #646464;
  --line: #d8d8d8;
  --accent: #202020;
  --selected: #e5e5e5;
  --heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--ink); font: 410 17px/1.65 var(--body); }
@media (min-width: 1600px) {
  body { background: linear-gradient(90deg, var(--edge) 0%, var(--background) 7%, var(--background) 93%, var(--edge) 100%); }
}
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
p, h1, h2, figure { margin: 0; }
.site-shell { width: min(1280px, calc(100% - 80px)); margin: auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; padding: 32px 0 28px; border-bottom: 4px double var(--line); }
.site-brand { color: var(--ink); font-family: var(--heading); font-size: clamp(24px, 2.5vw, 34px); font-weight: 520; line-height: 1.2; letter-spacing: -.035em; text-decoration: none; overflow-wrap: anywhere; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.site-nav a { display: block; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; padding: 9px 20px; border-radius: 4px; text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--selected); color: var(--accent); }
.nav-toggle { display: none; }
main { flex: 1; padding: 42px 0 64px; min-width: 0; }
main:focus { outline: none; }
.page-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
h1 { font: 410 clamp(30px, 3vw, 42px)/1.15 var(--heading); letter-spacing: -.025em; overflow-wrap: anywhere; }
.page-heading p { color: var(--muted); font-size: 14px; }
.site-page + .site-page { margin-top: 48px; }
.js .site-page + .site-page { margin-top: 0; }
.art-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 24px; }
.artwork { min-width: 0; }
.artwork-featured { grid-column: span 2; }
.artwork-link { display: block; text-decoration: none; color: var(--ink); }
.artwork-mat { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 16px; background: #fff; border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s; }
.artwork-mat img { display: block; width: 100%; height: 100%; object-fit: contain; }
.artwork-link:hover .artwork-mat, .artwork-link:focus-visible .artwork-mat { border-color: var(--accent); box-shadow: 0 5px 16px #30282012; }
.artwork figcaption { padding-top: 10px; font: 500 14px/1.5 var(--heading); text-align: center; overflow-wrap: anywhere; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.gallery-filters button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 4px; padding: 8px 16px; }
.gallery-filters button[aria-pressed="true"] { background: var(--selected); border-color: var(--accent); }
.gallery-empty { color: var(--muted); }
.content-sections { max-width: 1040px; margin-inline: auto; }
.site-page-text .page-heading { max-width: 1040px; margin-inline: auto; }
.content-section { display: grid; gap: 24px; margin-bottom: 24px; }
.content-section:last-child { margin-bottom: 0; }
.content-image { width: 100%; margin-bottom: 24px; }
.content-image:last-child { margin-bottom: 0; }
.content-image img { display: block; width: 100%; max-height: 760px; object-fit: contain; background: var(--surface); border: 1px solid var(--line); }
.content-image figcaption { padding-top: 8px; color: var(--muted); font-size: 13px; }
.layout-columns { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
#contact .layout-columns .card-body { width: fit-content; max-width: 100%; margin-inline: auto; }
.content-card { min-width: 0; padding: clamp(24px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow-wrap: anywhere; }
.content-card h2 { font: 410 25px/1.3 var(--heading); margin-bottom: 16px; }
.content-card p { white-space: pre-line; }
.content-card p + p { margin-top: 16px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.site-footer a { color: inherit; }
.preview-banner { padding: 8px 20px; background: #fff2d8; color: #493a22; text-align: center; font-size: 14px; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 10px 20px; background: var(--surface); z-index: 2000; }
.skip-link:focus { top: 12px; }
.style-preview { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 18px 22px; margin-top: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 13px; }
.style-preview strong, .style-preview span:not(.swatch) { display: block; }
.style-preview span:not(.swatch) { color: var(--muted); font-size: 12px; }
.style-options { display: flex; flex-wrap: wrap; gap: 8px; }
.style-options button { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); }
.style-options button[aria-pressed="true"] { border-color: var(--accent); background: var(--selected); }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #0002; }
.swatch-rose { background: linear-gradient(135deg, #f9dfe3 50%, #d0e2bb 50%); }
.swatch-paper { background: linear-gradient(135deg, #eadfc9 50%, #967050 50%); }
.swatch-ink { background: linear-gradient(135deg, #fff 50%, #252525 50%); }
.mfp-title { font-size: 14px; line-height: 1.6; padding-top: 8px; }

@media (max-width: 1000px) {
  .art-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-shell { width: calc(100% - 48px); }
}
@media (max-width: 700px) {
  .site-header { align-items: center; flex-direction: row; gap: 20px; padding: 24px 0 20px; }
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: auto; padding: 8px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); }
  .js .site-header:not(.nav-open) .site-nav { display: none; }
  .site-nav { flex-direction: column; gap: 4px; width: 100%; }
  .site-nav a { padding: 8px 16px; }
  .art-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .artwork-mat { padding: 10px; }
  main { padding: 30px 0 40px; }
  .page-heading { flex-direction: column; gap: 8px; margin-bottom: 24px; }
  .content-section { gap: 16px; margin-bottom: 16px; }
  .site-footer { flex-direction: column; }
}
@media (max-width: 420px) {
  .site-shell { width: calc(100% - 32px); }
  .art-gallery { grid-template-columns: minmax(0, 1fr); }
  .artwork-featured { grid-column: auto; }
  .artwork-mat { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
