/* --- Theme (edit these first) --- */
:root {
  --color-bg: #faf6f0;
  --color-bg-warm: #f3ebe0;
  --color-surface: #fffdf9;
  --color-ink: #2c2418;
  --color-ink-soft: #5c5346;
  --color-accent: #b85c38;
  --color-accent-hover: #9d4d2e;
  --color-sage: #6b8f71;
  --color-sage-soft: #e8f0e9;
  --color-border: #e5ddd2;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(44, 36, 24, 0.08);
  --shadow-soft: 0 4px 20px rgba(44, 36, 24, 0.06);
  --header-h: 4.25rem;
  --max-w: 42rem;
  --max-w-wide: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.6rem 1rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 200;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--color-accent);
}

.nav__toggle {
  display: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
  cursor: pointer;
}

.nav__list {
  display: flex;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav__list a {
  text-decoration: none;
  color: var(--color-ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav__list a:hover,
.nav__list a:focus-visible {
  color: var(--color-accent);
  background: rgba(184, 92, 56, 0.08);
}

@media (max-width: 640px) {
  .nav__toggle {
    display: block;
  }

  .nav__list {
    display: none;
    position: absolute;
    right: 1rem;
    top: calc(var(--header-h) + 4px);
    flex-direction: column;
    align-items: stretch;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.75rem;
    box-shadow: var(--shadow);
    min-width: 12rem;
  }

  .nav__list--open {
    display: flex;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 3.5rem 1.25rem 4rem;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  left: 50%;
  top: 20%;
  transform: translate(-50%, -30%);
  background: radial-gradient(
    circle,
    rgba(107, 143, 113, 0.22) 0%,
    rgba(184, 92, 56, 0.12) 42%,
    transparent 70%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.hero__kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin: 0 0 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--color-ink);
}

.hero__subtitle {
  font-size: 1.12rem;
  color: var(--color-ink-soft);
  margin: 0 auto 2rem;
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero__overlay {
  display: none;
}

.hero--photo {
  min-height: 26rem;
  padding: 4.25rem 1.25rem 4rem;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
}

.hero--photo .hero__glow {
  display: none;
}

.hero--photo .hero__overlay {
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 36, 24, 0.15),
    rgba(44, 36, 24, 0.5)
  );
  pointer-events: none;
}

.hero--photo .hero__kicker {
  color: rgba(255, 255, 255, 0.92);
}

.hero--photo .hero__title,
.hero--photo .hero__subtitle {
  color: #fff;
}

.hero--photo .hero__subtitle {
  opacity: 0.95;
}

.hero--photo .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.hero--photo .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

@media (min-width: 641px) {
  .nav__list {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 70vw;
  }

  .nav__list a {
    font-size: 0.85rem;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.12s ease;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn--primary:focus-visible {
  outline: 3px solid rgba(184, 92, 56, 0.45);
  outline-offset: 2px;
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-sage);
  color: var(--color-sage);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--light {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-ink);
  border-color: transparent;
}

.btn--light:hover {
  background: #fff;
  color: var(--color-accent-hover);
}

/* --- Page flow --- */
.page-intro {
  padding: 2.5rem 1.25rem 1.5rem;
  text-align: center;
  background: var(--color-bg);
}

.page-intro__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 auto;
  max-width: var(--max-w-wide);
  color: var(--color-ink);
}

.band {
  padding: 2.75rem 1.25rem;
  background: var(--color-bg-warm);
}

.band__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.band--alt {
  background: var(--color-bg);
}

.band--tight {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: var(--color-surface);
}

.band--list {
  background: var(--color-bg);
}

.column-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.column-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.column-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.65rem;
  color: var(--color-ink);
}

.column-card__p {
  margin: 0 0 0.65rem;
  color: var(--color-ink-soft);
  font-size: 0.98rem;
  line-height: 1.62;
  text-align: left;
}

.column-card__p:last-child {
  margin-bottom: 0;
}

.prose-block {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.prose-block__title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  color: var(--color-ink);
}

h5.prose-block__title {
  font-size: 1rem;
}

.prose-block__p {
  margin: 0 0 0.75rem;
  color: var(--color-ink-soft);
  line-height: 1.65;
}

.prose-block__p:last-child {
  margin-bottom: 0;
}

.photo-banner-wrap {
  margin: 0;
  line-height: 0;
}

.photo-banner {
  position: relative;
  margin: 0;
  min-height: clamp(240px, 45vw, 380px);
  background-image: var(--banner-img);
  background-size: cover;
  background-position: center;
}

.photo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 24, 0.22);
  pointer-events: none;
}

.photo-banner__caption {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: min(92vw, 36rem);
  text-align: center;
  line-height: 1.5;
  padding: 1.25rem;
}

.photo-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.photo-banner__subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ordered-block {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.ordered-block__intro {
  font-size: 1.05rem;
  color: var(--color-ink);
  margin: 0 0 1.25rem;
}

.ordered-block__list {
  margin: 0;
  padding: 0;
  list-style-position: inside;
  text-align: center;
  color: var(--color-ink-soft);
  line-height: 1.75;
}

.ordered-block__list li {
  margin-bottom: 0.35rem;
}

/* --- Contact --- */
.contact.section {
  padding: 3rem 1.25rem;
  background: linear-gradient(180deg, var(--color-bg-warm) 0%, var(--color-bg) 100%);
}

.contact .section__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--color-ink);
  text-align: center;
}

.contact .section__lead {
  font-size: 1.05rem;
  color: var(--color-ink-soft);
  max-width: var(--max-w);
  margin: 0 auto 1.5rem;
  text-align: center;
}

.contact__box {
  max-width: 560px;
  margin: 0 auto;
}

.form__row {
  margin-bottom: 1.1rem;
}

.form label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--color-ink);
}

.form input,
.form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form input:focus-visible,
.form textarea:focus-visible {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px var(--color-sage-soft);
}

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

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form__actions {
  margin-top: 1.25rem;
}

.form-status {
  margin-top: 1rem;
  min-height: 1.5rem;
  font-size: 0.95rem;
}

.form-status--ok {
  color: var(--color-sage);
  font-weight: 600;
}

.form-status--err {
  color: #a33;
  font-weight: 600;
}

.banner {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}

.banner--err {
  background: #fde8e8;
  color: #7a2222;
}

/* --- Interior pages (About / Project / Gallery) --- */
.subpage-main {
  padding: 2rem 1.25rem 3rem;
  min-height: 50vh;
}

.page-body {
  max-width: 42rem;
  margin: 0 auto;
}

body[data-wgs-page="gallery"] .page-body {
  max-width: 56rem;
}

.page-body__heading {
  font-family: var(--font-display);
  color: var(--color-ink);
  margin: 1.75rem 0 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}

.page-body__heading:first-child {
  margin-top: 0;
}

h2.page-body__heading {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
}

h3.page-body__heading {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-body__p {
  margin: 0 0 1rem;
  color: var(--color-ink-soft);
  line-height: 1.65;
}

.page-body__figure {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.page-body__figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Footer --- */
.site-footer {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.site-footer__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  text-align: center;
}

.site-footer__note {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--color-ink-soft);
}

.site-footer__rights {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

/* --- Loading --- */
html:not(.is-ready) .subpage-main .page-body {
  min-height: 6rem;
}

html:not(.is-ready) .hero__title {
  min-height: 2.5em;
}

html.is-error .hero__title {
  min-height: unset;
}
