:root {
  color-scheme: light;
  --paper: #fbf7ee;
  --ink: #382d28;
  --muted: #69584f;
  --accent: #8a413b;
  --line: #e1d5c7;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid #37574b; outline-offset: 5px; }
.wrap { width: min(100% - 2rem, 69rem); margin-inline: auto; }

.site-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: .25rem 1rem; padding-block: .7rem; border-bottom: 1px solid var(--line);
}
.site-header a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-header a:hover { text-decoration: underline; }
.wordmark { gap: .5rem; font: bold 1.2rem var(--serif); }
.wordmark [aria-hidden], .site-footer [aria-hidden] { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .875rem; }
.language-picker:not([hidden]) { display: inline-flex; align-items: center; }
.language-picker button {
  min-width: 44px; min-height: 44px; border: 1px solid transparent; border-radius: 2rem;
  background: transparent; color: var(--muted); font: 650 .8rem system-ui, sans-serif; cursor: pointer;
}
.language-picker button:hover { color: var(--accent); }
.language-picker button[aria-pressed="true"] { border-color: var(--line); background: #fffcf6; color: var(--accent); }

.hero { display: grid; align-items: center; gap: 2rem; padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.eyebrow { margin: 0 0 .75rem; color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: normal; line-height: 1.02; }
h1 { font-size: clamp(2.65rem, 9vw, 6.25rem); letter-spacing: -.07em; }
h1 em { color: var(--accent); }
h2 { font-size: clamp(2.15rem, 5vw, 3.75rem); letter-spacing: -.05em; }
.intro { max-width: 31ch; margin: 1.2rem 0 1.4rem; color: var(--muted); }
.hero-art { overflow: hidden; border-radius: 48% 48% 1.25rem 1.25rem / 53% 53% 1.25rem 1.25rem; }
.hero-art img { width: 100%; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 48px; padding: .7rem 1.15rem; border-radius: 2rem; background: var(--accent);
  color: #fff; font-weight: 650; text-decoration: none; cursor: pointer;
}
.button:hover { background: #71332e; }

.ideas { border-top: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 3.5rem); }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.35rem; }
.section-heading p, .upload p { margin: 0; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.65rem, 2vw, 1.2rem); }
.gallery a { overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; background: #fffcf6; text-decoration: none; }
.gallery img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.gallery a > span { display: flex; justify-content: space-between; align-items: center; gap: .35rem; min-height: 44px; padding: .55rem .7rem; font-size: .9rem; font-weight: 650; }
.gallery a > span > [aria-hidden] { color: var(--accent); }
.gallery a:hover > span { color: var(--accent); }

.upload { display: grid; gap: 1.15rem; padding: clamp(1.2rem, 4vw, 3rem); background: #e6ebe0; border-radius: 1.35rem; }
.upload h2 { margin-bottom: .65rem; }
.upload p { max-width: 46ch; }
.file-button { position: relative; }
.file-button:focus-within { outline: 3px solid #37574b; outline-offset: 5px; }
.file-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-button:has(input:disabled) { opacity: .65; cursor: wait; }
.file-button input:disabled { cursor: wait; }
.upload .hint { margin-top: .5rem; font-size: .8rem; }
.upload .status { margin-top: .35rem; min-height: 1.55em; font-size: .9rem; font-weight: 650; }
.status[data-state="error"] { color: #852d24; }
.status[data-state="success"] { color: #22523a; }
.site-footer { padding-block: 1.6rem; text-align: center; color: var(--muted); font: italic 1rem var(--serif); }
section[id] { scroll-margin-top: 1.5rem; }

@media (min-width: 45rem) {
  .wrap { width: min(100% - 4rem, 69rem); }
  .hero { grid-template-columns: 1.08fr 1fr; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .upload { grid-template-columns: 1.2fr 1fr; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
