:root {
  --ink: #241f1b;
  --ink-soft: #3f3832;
  --merle: #2c3a46;
  --merle-mid: #3e5160;
  --cocoa: #6b4332;
  --cream: #f4efe6;
  --paper: rgba(247, 242, 234, 0.9);
  --line: rgba(36, 31, 27, 0.14);
  --shadow: 0 14px 32px rgba(48, 36, 24, 0.16);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: min(1180px, calc(100% - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: #ebe4d6;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #e4d9c6;
  background-image: url("images/linen.jpg");
  background-position: center;
  background-size: cover;
  background-blend-mode: multiply;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 6.6rem);
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  background: #d5dde3;
  color: #1c1814;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.6rem 0.85rem;
  background: var(--merle);
  color: var(--cream);
  text-decoration: none;
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.8rem max(1rem, calc((100% - 1180px) / 2));
  background: rgba(244, 239, 230, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  width: 1.45rem;
  height: 1.45rem;
  flex: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 34%, #f4efe6 2.1px, transparent 2.3px),
    radial-gradient(circle at 64% 40%, #c4a574 1.6px, transparent 1.8px),
    radial-gradient(circle at 48% 70%, #f4efe6 2.2px, transparent 2.4px),
    radial-gradient(circle at 72% 68%, #9aabba 1.5px, transparent 1.7px),
    var(--merle);
}

.logo-words {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 620;
}

.logo-bakes {
  margin-top: 0.18rem;
  color: var(--merle-mid);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a[aria-current="true"] {
  color: var(--cocoa);
  box-shadow: inset 0 -2px 0 var(--cocoa);
}

.hero {
  padding: 2.4rem 0 1.2rem;
}

.kicker {
  margin-bottom: 0.75rem;
  color: var(--merle-mid);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 em {
  display: block;
  color: var(--cocoa);
  font-style: italic;
  font-weight: 500;
}

.lead {
  max-width: 34rem;
  margin-top: 1.15rem;
  color: var(--ink-soft);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--merle);
  color: var(--cream);
}

.button-primary:hover {
  background: #243240;
}

.button-ghost {
  background: rgba(247, 242, 234, 0.55);
  border-color: rgba(36, 31, 27, 0.28);
  color: var(--ink);
}

.button-ghost:hover {
  background: rgba(247, 242, 234, 0.9);
}

.hero-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.6rem;
  margin: 1.6rem 0 0;
  padding: 0.95rem 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts li {
  font-weight: 600;
  letter-spacing: 0.01em;
}

section[id] {
  scroll-margin-top: 4.75rem;
}

.section {
  padding: 4.2rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.section-head p + p,
.group-copy p,
.about-copy p + p,
.enquire-copy p + p {
  margin-top: 0.75rem;
}

.section-head .note,
.group-copy p,
.about-copy p,
.enquire-copy p {
  color: var(--ink-soft);
}

.group + .group {
  margin-top: 4.4rem;
}

.group-copy {
  max-width: 38rem;
  margin-bottom: 1.25rem;
}

.prints {
  display: grid;
  gap: 1.15rem;
}

.print {
  margin: 0;
  padding: 0.55rem 0.55rem 0.65rem;
  background: #f7f4ee;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    var(--shadow);
}

.print-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: zoom-in;
}

.print img {
  display: block;
  width: 100%;
}

.print figcaption {
  margin: 0.55rem 0.15rem 0.05rem;
  color: #5c564e;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.panel {
  padding: clamp(1.25rem, 3vw, 2.4rem);
  background: var(--paper);
  border: 1px solid rgba(36, 31, 27, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(48, 36, 24, 0.06);
}

.commitments {
  display: grid;
  gap: 1.15rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.commitments h3 {
  margin-bottom: 0.25rem;
  font-size: 1.35rem;
}

.commitments p {
  color: var(--ink-soft);
}

.email {
  color: var(--merle);
  font-weight: 700;
  text-underline-offset: 0.16em;
}

.enquire-form {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid #c9c1b4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.field input {
  min-height: 48px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6d675f;
}

.form-status {
  min-height: 1.4em;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.form-fallback {
  margin: 0;
  padding: 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  white-space: pre-wrap;
}

.site-footer {
  padding: 0.4rem 0 2.2rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer a {
  font-weight: 600;
}

#viewer {
  width: min(1040px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
  padding: 0.7rem;
  border: 0;
  background: #f7f4ee;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

#viewer::backdrop {
  background: rgba(24, 28, 32, 0.84);
}

.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.viewer-count {
  margin: 0;
  color: #5c564e;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewer-close,
.viewer-nav {
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(36, 31, 27, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

#viewer img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #1c1814;
}

#viewer-caption {
  margin: 0.65rem 0.15rem 0.15rem;
  font-size: 0.95rem;
}

.viewer-controls {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

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

@media (min-width: 720px) {
  .prints-two,
  .prints-squares {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .print-wide {
    grid-column: 1 / -1;
  }

  .about-grid,
  .enquire-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
    align-items: start;
  }

  .commitments {
    margin-top: 0;
  }
}

@media (min-width: 880px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem 2.4rem;
    align-items: center;
    padding-top: 3.2rem;
  }

  .hero-stage {
    display: block;
    position: relative;
    min-height: 620px;
    margin-top: 0;
  }

  .hero-stage .print-feature:first-child {
    width: 68%;
    margin-left: auto;
  }

  .hero-stage .print-feature:last-child {
    position: absolute;
    left: 0;
    bottom: 0.5rem;
    width: 50%;
  }

  .facts {
    grid-column: 1 / -1;
  }

  .prints-three {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .prints-three .print:nth-child(2) {
    margin-top: 2.2rem;
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .enquire-form .button {
    display: grid;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (hover: hover) and (pointer: fine) {
  .print {
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .print:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 38px rgba(48, 36, 24, 0.2);
  }
}

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

  .print,
  .print:hover {
    transition: none;
    transform: none;
  }
}

@media print {
  body::before,
  .site-header,
  .hero-actions,
  .enquire-form,
  #viewer {
    display: none;
  }

  .print {
    break-inside: avoid;
    box-shadow: none;
  }
}
