:root {
  color-scheme: light;
  --paper: #f9f8f3;
  --paper-light: #fffefa;
  --ink: #1c2d23;
  --green: #28513d;
  --muted: #4f6054;
  --line: #d9ddd2;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.6 var(--sans); background: var(--paper); color: var(--ink); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
figure, h1, h2, h3, p { margin: 0; }
[id] { scroll-margin-top: 1.25rem; }
:focus-visible { outline: 3px solid #668954; outline-offset: 4px; }

.wrap { width: min(100% - 6rem, 78rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; top: .75rem; left: .75rem; transform: translateY(-180%); background: var(--paper-light); padding: .5rem 1rem; }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: .65rem; font-size: 1.2rem; font-weight: 750; letter-spacing: -.045em; text-decoration: none; }
.main-nav, .header-actions, .hero-actions { display: flex; align-items: center; }
.main-nav { gap: clamp(1.25rem, 3vw, 2.5rem); }
.main-nav a, .login-link { font-size: .9375rem; font-weight: 650; text-decoration: none; }
.main-nav a:hover, .login-link:hover { text-decoration: underline; text-underline-offset: .3em; }
.header-actions { justify-content: flex-end; gap: clamp(.75rem, 2vw, 1.5rem); white-space: nowrap; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .65rem 1.25rem; border: 1px solid transparent; border-radius: .6rem; font-size: .9375rem; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none; transition: background-color .18s, border-color .18s; }
.button-small { min-height: 2.6rem; padding-inline: 1.05rem; }
.button-dark { background: var(--green); color: white; }
.button-dark:hover { background: #1a392a; }
.button-outline { border-color: #aebbae; color: var(--ink); background: transparent; }
.button-outline:hover { background: #eaf0e5; border-color: #829782; }
.button-light { background: #f5f3e8; color: #233c2f; }
.button-light:hover { background: #e2ebda; }

.hero { display: grid; grid-template-columns: 1fr 1.07fr; align-items: center; gap: clamp(2rem, 4.4vw, 4.2rem); padding-block: clamp(3.75rem, 7.2vw, 7rem) clamp(4.5rem, 8.2vw, 8rem); }
.eyebrow { color: var(--green); font-size: .875rem; font-weight: 750; letter-spacing: .13em; line-height: 1.45; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: .65rem; }
.eyebrow-line { display: inline-block; width: 1.35rem; height: 1px; background: #71916f; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.058em; line-height: .99; }
h1 { margin-top: 1.1rem; font-size: clamp(3.75rem, 6.05vw, 6.65rem); }
h2 { margin-top: .75rem; font-size: clamp(2.75rem, 4.45vw, 4.5rem); }
h1 em, h2 em { color: var(--green); font-weight: inherit; }
.hero-description { max-width: 28rem; margin-top: 1.5rem; color: var(--muted); font-size: clamp(1.0625rem, 1.45vw, 1.2rem); }
.hero-actions { flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.hero-visual { position: relative; min-width: 0; }
.hero-photo { position: relative; overflow: hidden; border-radius: 1.15rem; background: #78927d; aspect-ratio: 1.35; isolation: isolate; }
.hero-photo::after { position: absolute; inset: 45% 0 0; z-index: 0; content: ""; background: linear-gradient(transparent, #0d211b9c); pointer-events: none; }
.hero-photo img, .snapshot img, .album-grid img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: 1.25rem; bottom: 1.2rem; z-index: 1; display: flex; align-items: center; gap: .5rem; color: white; font-size: .875rem; font-weight: 600; }
.caption-dot { width: .43rem; height: .43rem; border-radius: 50%; background: #e2e9b6; }
.snapshot { position: absolute; z-index: 1; right: -.8rem; bottom: -1.35rem; width: 33%; min-width: 8rem; padding: .45rem .45rem .35rem; transform: rotate(8deg); border-radius: .45rem; background: var(--paper-light); box-shadow: 0 8px 26px #15251c34; }
.snapshot img { height: auto; aspect-ratio: 1.55; border-radius: .18rem; }
.snapshot figcaption { padding: .35rem .15rem .05rem; text-align: center; font: italic 600 clamp(.875rem, 1.2vw, 1.125rem)/1.25 var(--serif); }

.features { padding-block: clamp(3.75rem, 6.5vw, 6.25rem); background: #eaf0e5; text-align: center; }
.feature-grid, .album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature-grid { margin-top: 2.25rem; text-align: left; }
.feature-card { padding: clamp(1.25rem, 2.6vw, 2.25rem); border: 1px solid #d6dfd1; border-radius: .9rem; background: #f9fbf6; }
.feature-icon { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border-radius: .7rem; background: #e7eee0; color: var(--green); }
.feature-icon svg { width: 1.45rem; height: 1.45rem; }
.feature-card h3 { margin-top: 1rem; font-size: 1.125rem; letter-spacing: -.025em; line-height: 1.3; }
.feature-card p { margin-top: .55rem; color: var(--muted); }

.albums { padding-block: clamp(4rem, 8vw, 7rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 1.75rem; }
.section-heading > p { max-width: 19rem; color: var(--muted); }
.album-grid img { height: auto; aspect-ratio: 1.45; border-radius: .8rem; background: #dce4d8; }
.album-grid figcaption { padding-top: .55rem; font-weight: 700; }

.about-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2rem 4rem; padding: clamp(2rem, 5.6vw, 5rem); border-radius: 1.15rem; background: #254334; color: #faf8ef; }
.about .eyebrow, .about h2 em { color: #ceddbc; }
.about h2 { font-size: clamp(2.6rem, 4vw, 4.1rem); }
.about-inner > div:last-child > p { max-width: 30rem; color: #e0e9db; }
.about .button { margin-top: 1.2rem; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem 1.5rem; padding-block: 2.2rem; }
.footer small { color: var(--muted); font-size: .875rem; }

dialog { width: min(100% - 2rem, 30rem); max-height: calc(100% - 2rem); overflow: auto; padding: clamp(1.4rem, 5vw, 2.5rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--paper-light); color: var(--ink); box-shadow: 0 18px 70px #0a1b1250; }
dialog::backdrop { background: #102118a8; }
body:has(dialog[open]) { overflow: hidden; }
.close-dialog { position: absolute; right: .8rem; top: .8rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: .5rem; background: #eaf0e5; color: var(--ink); font-size: 1.65rem; line-height: 1; }
.close-dialog:hover { background: #dce8d7; }
.auth-panel h2 { margin: .65rem 0 1.4rem; font-size: clamp(2.15rem, 6vw, 3.3rem); }
.auth-panel form { display: grid; gap: .9rem; }
.auth-panel label { display: grid; gap: .25rem; font-size: .9375rem; font-weight: 700; }
.auth-panel input { width: 100%; min-height: 2.75rem; padding: .45rem .65rem; border: 1px solid #9fac9e; border-radius: .4rem; background: white; color: var(--ink); font-size: 1rem; font-weight: 500; }
.auth-panel form .button { margin-top: .35rem; }
.form-error { color: #9c302b; font-size: .9375rem; }
.auth-switch, .maintenance p { color: var(--muted); }
.auth-switch { margin-top: 1rem; }
.auth-switch a { color: var(--green); font-weight: 700; text-underline-offset: .15em; }
.maintenance .button { margin-top: 1.25rem; }
.fallback { display: grid; gap: .5rem; padding-bottom: 2rem; }

@media (max-width: 64rem) {
  .wrap { width: min(100% - 3.5rem, 78rem); }
  .hero { gap: 2rem; }
  .desktop-break { display: none; }
}

@media (max-width: 46rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: auto; grid-template-columns: 1fr auto; gap: .75rem .5rem; padding-block: .8rem .65rem; }
  .brand { font-size: 1.1rem; gap: .5rem; }
  .brand img { width: 2rem; height: 2rem; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: clamp(.85rem, 6vw, 2.25rem); }
  .header-actions { gap: .65rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem 4.25rem; }
  h1 { max-width: 10ch; font-size: clamp(3.3rem, 10vw, 5.25rem); }
  .hero-description { margin-top: 1rem; }
  .hero-visual { margin-right: .35rem; }
  .hero-photo { aspect-ratio: 1.36; }
  .snapshot { right: -.3rem; bottom: -.8rem; }
  .feature-grid, .album-grid { grid-template-columns: 1fr; }
  .feature-grid { gap: .75rem; margin-top: 1.5rem; }
  .album-grid { gap: 1.4rem; }
  .section-heading, .about-inner { display: grid; grid-template-columns: 1fr; }
  .about-inner { gap: 1.25rem; }
}

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