:root {
  --color-snow-white: #fcfbf8;
  --color-charcoal: #1d1d1b;
  --color-warm-ivory: #f2ede3;
  --color-dry-clay: #a66e59;
  --color-muted-bronze: #8b765a;
  --color-line-neutral: #d9d3c8;
  --color-focus-ring: #7a4637;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: Inter, Arial, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lead: 1.25rem;
  --text-feature: 1.75rem;
  --text-page-title: clamp(2.25rem, 4.5vw, 2.5rem);
  --text-display: clamp(3rem, 7vw, 6.5rem);

  --leading-tight: 0.92;
  --leading-heading: 1.05;
  --leading-feature: 1.15;
  --leading-label: 1.1;
  --leading-sm: 1.45;
  --leading-body: 1.65;
  --leading-lead: 1.4;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --space-11: 10rem;

  --gutter: 1.5rem;
  --container-max: 82.5rem;
  --container-gallery: 72.5rem;
  --container-reading: 42.5rem;
  --section-space: 3rem;

  --surface-page: var(--color-snow-white);
  --surface-panel: var(--color-warm-ivory);
  --surface-dark: var(--color-charcoal);
  --text-primary: var(--color-charcoal);
  --text-muted: var(--color-muted-bronze);
  --border-color: var(--color-line-neutral);

  --shadow-overlay: 0 12px 36px rgba(29, 29, 27, 0.08);

  --radius-none: 0;
  --radius-control: 0.125rem;
  --radius-button: 0.25rem;

  --transition-fast: 180ms ease;
  --transition-base: 360ms ease;
  --transition-image: 700ms ease-out;
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2.5rem;
    --section-space: 4rem;
  }
}

@media (min-width: 75rem) {
  :root {
    --gutter: 4rem;
    --section-space: 6rem;
  }
}

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

html {
  min-width: 320px;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 100%;
  line-height: var(--leading-body);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main,
header,
footer,
section,
article,
aside,
nav,
figure,
form,
fieldset,
table {
  min-width: 0;
}

img,
picture,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

img {
  font-style: italic;
}

svg {
  fill: currentColor;
}

iframe {
  border: 0;
}

button,
input,
select,
textarea {
  max-width: 100%;
  color: inherit;
  font: inherit;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

a {
  color: inherit;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
}

::selection {
  background: var(--color-dry-clay);
  color: var(--color-snow-white);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
blockquote,
figure,
table,
pre,
hr {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-feature-settings: "liga" 1, "kern" 1;
  hyphens: auto;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

h1 {
  margin-block-end: var(--space-6);
  font-size: var(--text-page-title);
  line-height: var(--leading-heading);
}

h2 {
  margin-block-end: var(--space-5);
  font-size: var(--text-feature);
  line-height: var(--leading-feature);
}

h3 {
  margin-block-end: var(--space-4);
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  line-height: var(--leading-feature);
}

h4,
h5,
h6 {
  margin-block-end: var(--space-3);
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
}

p {
  margin-block-end: var(--space-5);
  overflow-wrap: anywhere;
}

ul,
ol {
  margin-block-end: var(--space-5);
  padding-inline-start: 1.25rem;
}

li::marker {
  color: var(--color-muted-bronze);
}

dl {
  margin-block-end: var(--space-5);
}

dt {
  font-weight: 500;
}

dd {
  margin: 0 0 var(--space-3);
}

blockquote {
  margin-inline: 0;
  margin-block-end: var(--space-5);
  padding-inline-start: var(--space-5);
  border-inline-start: 1px solid var(--color-charcoal);
  font-family: var(--font-heading);
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
}

figure {
  margin-inline: 0;
  margin-block-end: var(--space-6);
}

figcaption {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
}

hr {
  height: 1px;
  margin-block: var(--space-6);
  border: 0;
  background: var(--border-color);
}

small {
  font-size: var(--text-xs);
  line-height: var(--leading-label);
}

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

code,
kbd,
samp,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code,
kbd,
samp {
  font-size: 0.9em;
}

pre {
  margin-block-end: var(--space-5);
  overflow-x: auto;
  padding: var(--space-4);
  border: 1px solid var(--border-color);
  background: var(--surface-panel);
  white-space: pre-wrap;
}

label {
  display: block;
  margin-block-end: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--leading-sm);
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-control);
  background: var(--color-snow-white);
  color: var(--text-primary);
  line-height: 1.4;
  padding: 0.75rem;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

select {
  padding-inline-end: 2.5rem;
}

textarea {
  padding-block: 0.75rem;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-muted-bronze);
  opacity: 1;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--color-charcoal);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-charcoal);
  outline: none;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.125rem;
  min-width: 1.125rem;
  min-height: 1.125rem;
  margin: 0;
  accent-color: var(--color-charcoal);
}

fieldset {
  margin: 0 0 var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--border-color);
}

legend {
  padding-inline: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  max-width: 100%;
  border: 1px solid var(--color-charcoal);
  border-radius: var(--radius-button);
  background: var(--color-charcoal);
  color: var(--color-snow-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.2;
  padding: 0.75rem 0.875rem;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}

button:hover,
.button:hover {
  background: var(--color-snow-white);
  color: var(--color-charcoal);
}

.button--secondary {
  background: transparent;
  color: var(--color-charcoal);
}

.button--secondary:hover {
  background: var(--color-charcoal);
  color: var(--color-snow-white);
}

.button--light {
  border-color: var(--color-snow-white);
  background: var(--color-snow-white);
  color: var(--color-charcoal);
}

.button--light:hover {
  background: transparent;
  color: var(--color-snow-white);
}

.container,
.container-gallery,
.container-reading {
  width: min(100%, var(--container-max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-gallery {
  width: min(100%, var(--container-gallery));
}

.container-reading {
  width: min(100%, var(--container-reading));
}

.section {
  padding-block: var(--section-space);
}

.surface-ivory {
  background: var(--surface-panel);
}

.surface-dark {
  background: var(--surface-dark);
  color: var(--color-snow-white);
}

.surface-dark h1,
.surface-dark h2,
.surface-dark h3,
.surface-dark h4,
.surface-dark h5,
.surface-dark h6 {
  color: var(--color-snow-white);
}

.eyebrow,
.collection-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.eyebrow::after,
.collection-label::after {
  content: "";
  flex: 1 1 2rem;
  min-width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.display-title {
  margin-block-end: var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: 500;
  font-feature-settings: "liga" 1, "kern" 1;
  letter-spacing: -0.035em;
  line-height: var(--leading-tight);
  overflow-wrap: anywhere;
}

.lead {
  margin-block-end: var(--space-6);
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
}

.caption {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
}

.stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stack > * {
  min-width: 0;
}

.stack > *:last-child {
  margin-block-end: 0;
}

.stack--2 {
  gap: var(--space-2);
}

.stack--3 {
  gap: var(--space-3);
}

.stack--4 {
  gap: var(--space-4);
}

.stack--5 {
  gap: var(--space-5);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.actions > * {
  min-width: 0;
}

.gallery-frame {
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--surface-panel);
}

.gallery-frame img,
.gallery-frame picture,
.gallery-frame video {
  width: 100%;
}

.gallery-frame img,
.gallery-frame video {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition-image);
}

.gallery-frame:hover img,
.gallery-frame:hover video {
  transform: scale(1.015);
}

.gallery-frame--wide img,
.gallery-frame--wide video {
  aspect-ratio: 16 / 9;
}

.gallery-frame--detail img,
.gallery-frame--detail video {
  aspect-ratio: 3 / 2;
}

.gallery-frame--portrait img,
.gallery-frame--portrait video {
  aspect-ratio: 2 / 3;
}

.gallery-plate {
  min-width: 0;
}

.gallery-plate__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.gallery-plate__caption {
  margin: var(--space-2) 0 0;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-heading);
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
}

.panel {
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--border-color);
  background: var(--surface-panel);
}

.panel > :last-child {
  margin-block-end: 0;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--border-color);
}

.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--space-3);
  left: var(--space-3);
  transform: translateY(-200%);
  padding: var(--space-3) var(--space-4);
  background: var(--color-charcoal);
  color: var(--color-snow-white);
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

.content-reveal {
  animation: content-reveal 420ms ease both;
}

@keyframes content-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 39.999rem) {
  .display-title {
    font-size: clamp(2.75rem, 13vw, 4.5rem);
  }

  .gallery-frame--wide img,
  .gallery-frame--wide video {
    aspect-ratio: 4 / 3;
  }

  .gallery-frame--detail img,
  .gallery-frame--detail video {
    aspect-ratio: 1 / 1;
  }

  .actions {
    align-items: stretch;
  }

  .actions > .button,
  .actions > button {
    flex: 1 1 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
    transition-duration: 0ms;
  }

  .gallery-frame:hover img,
  .gallery-frame:hover video {
    transform: none;
  }
}