/* Visual review followed Unslop by Damir Sokolovsky (@heydamir), CC BY 4.0. */
:root {
  color-scheme: light;
  --paper: #f8f2e6;
  --surface: #fffaf0;
  --ink: #183b30;
  --text: #252d27;
  --muted: #625e51;
  --green: #123b30;
  --green-hover: #285547;
  --cream: #fff1d4;
  --gold: #c6a36a;
  --line: #d9cfb9;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: Georgia, "Times New Roman", serif;
  --body: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.5 var(--body); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, summary { font: inherit; color: inherit; cursor: pointer; }
button { border: 1px solid var(--line); border-radius: 8px; background: transparent; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #997033; outline-offset: 4px; }
img { display: block; max-width: 100%; }
svg { display: block; }
:is(.primary, button, summary) svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(100% - 64px, 1280px); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 12px; z-index: 5; padding: 8px 12px; background: var(--surface); transform: translateY(-150%); }
.skip:focus { transform: none; }

.header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 600 28px/1 var(--display); }
.brand-mark { width: 32px; height: 32px; }
.brand span { border-left: 1px solid var(--gold); padding-left: 12px; }
.desktop-nav { display: flex; gap: 28px; }
.header nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; font-weight: 500; }
.header nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mobile-nav { display: none; position: relative; z-index: 2; }
.mobile-nav summary { min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; top: calc(100% + 4px); right: 0; min-width: 160px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }

.hero { background: var(--green); color: var(--cream); }
.hero-inner { min-height: 484px; position: relative; isolation: isolate; display: grid; grid-template-columns: 53% 47%; align-items: center; }
.hero-inner::before { content: ""; position: absolute; inset: 20px 0; z-index: -1; border: 1px solid var(--gold); border-radius: 16px; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; padding: 48px 0 48px clamp(24px, 4.2vw, 64px); }
.hero h1 { font: 600 clamp(56px, 8vw, 112px)/.98 var(--display); text-transform: uppercase; letter-spacing: -.035em; }
.hero p { margin-top: 16px; font: 400 clamp(20px, 2.55vw, 34px)/1.25 var(--display); }
.hero p::after { content: ""; display: block; width: 64px; margin: 24px 0; border-top: 1px solid var(--gold); }
.primary { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; padding: 8px 20px; border-radius: 10px; background: var(--cream); color: var(--ink); text-decoration: none; font-weight: 600; transition: background-color 160ms var(--ease); }
.primary:hover { background: #ead9b5; }
.hero-visual { align-self: stretch; position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: flex-start; }
.portrait { display: block; width: min(84%, 428px); height: auto; max-height: 484px; }
.hero-quote { position: absolute; top: 24%; right: 7%; color: var(--cream); font: 400 clamp(18px, 2.4vw, 32px)/1.02 var(--display); transform: rotate(-7deg); text-align: center; }
.hero-quote::after { content: ""; display: block; width: 72%; border-bottom: 1px solid var(--gold); margin: 12px 0 0 auto; }

.gallery-section { padding: 36px 0 56px; }
.section-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; color: var(--ink); }
.section-heading::after { content: ""; order: 1; border-bottom: 1px solid var(--gold); flex: 1; }
.section-heading h2 { font: 600 clamp(36px, 4.4vw, 58px)/1.05 var(--display); letter-spacing: -.025em; }
.section-heading > :last-child { order: 2; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 44px; padding: 4px 16px; color: var(--ink); font-size: 14px; font-weight: 500; transition: background-color 160ms var(--ease); }
.filters button:hover, .load-more:hover, .icon-button:hover, .art-pager button:hover:not(:disabled) { background: #efe7d7; }
.filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }
.filters button[aria-pressed="true"]:hover { background: var(--green-hover); }
.gallery-status { margin: 0 0 12px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.card a { display: block; height: 100%; border-radius: inherit; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #eee8dc; border-radius: 11px; }
.card--cover img { object-fit: cover; object-position: center top; }
.load-more { display: block; margin: 24px auto 0; min-height: 44px; padding: 4px 20px; color: var(--ink); }
.footer { background: var(--green); color: var(--cream); }
.footer-inner { display: flex; align-items: center; min-height: 76px; }
.footer-inner span { font: 400 22px/1.2 var(--display); }

#art-dialog { width: min(calc(100% - 32px), 900px); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); }
#art-dialog::backdrop { background: rgb(10 22 18 / 78%); }
body:has(dialog[open]) { overflow: hidden; }
.viewer { padding: 16px; }
.viewer-heading, .viewer-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; }
.viewer-heading { margin-bottom: 12px; }
.viewer-heading h2 { font: 600 clamp(20px, 3vw, 32px)/1.2 var(--display); }
.icon-button, .art-pager button { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.viewer > img { width: 100%; height: min(64vh, 680px); object-fit: contain; background: #eee8dc; border-radius: 8px; }
.viewer-footer { margin-top: 12px; flex-wrap: wrap; font-size: 14px; }
.viewer-footer a { margin-left: auto; }
.art-pager { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.art-pager button:disabled { opacity: .45; cursor: default; }

@media (max-width: 1040px) {
  .hero-inner { min-height: 400px; }
  .portrait { max-height: 400px; }
  .hero-quote { right: 4%; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-inner::before { inset: 12px 0; border-radius: 12px; }
  .hero-copy { padding: 32px 24px 8px; }
  .hero h1 { font-size: clamp(44px, 10vw, 72px); }
  .hero p { margin-top: 8px; }
  .hero p::after { margin: 16px 0; }
  .hero-visual { min-height: 240px; justify-content: center; }
  .portrait { width: min(68%, 292px); max-height: 304px; margin-right: 12%; }
  .hero-quote { top: 36%; right: 8%; font-size: clamp(16px, 4.4vw, 24px); }
  .gallery-section { padding-top: 28px; }
  .gallery-heading { flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
  .gallery-heading .filters { flex: 0 0 100%; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .header { min-height: 60px; }
  .brand { font-size: 24px; gap: 8px; }
  .brand span { padding-left: 8px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .section-heading { gap: 12px; }
  .filters { gap: 4px; }
  .filters button { padding-inline: 8px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-section { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
