/* ==========================================================================
   SECTIONS — Darby Creek Dog Bakery
   Archival paper: sand sheet, crust-brown ink, hairline frames.
   ========================================================================== */

:root {
  --bg: #f3ecdf;
  --bg-alt: #e7dccb;
  --bg-deep: #2c2118;
  --ink: #2c2118;
  --ink-soft: #6a5646;
  --ink-invert: #f3ecdf;
  --accent: #6e3a1c;
  --accent-soft: #ead9c6;
  --line: #d2c3ae;
  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --tracking-display: -0.015em;
  --radius: 0;
  --radius-lg: 0;
  --container: 1120px;
  --container-narrow: 640px;
  --shadow: none;
}

body {
  background:
    linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat,
    var(--bg);
}

.site-header {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: none;
  color: var(--accent);
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__kicker {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.brand__title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
}

.nav a {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.nav a[href="#order"] {
  border: 1px solid var(--ink);
  padding: 0.45rem 0.75rem;
  opacity: 1;
}

.folio {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__intro {
  max-width: 40rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
}

.section__intro h2,
.about__copy h2,
.order__facts h2,
.hero h1 {
  font-weight: 400;
}

.hero {
  padding-block: clamp(1.5rem, 3vw, 3rem) var(--section-y);
}

.hero__grid,
.about,
.order {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.hero h1 {
  font-size: clamp(2.15rem, 1.2rem + 3vw, 3.7rem);
  max-width: 11em;
  margin-bottom: 1rem;
}

.hero .lede,
.section__intro .lede {
  max-width: 38rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn--primary {
  color: var(--ink-invert);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.plate {
  background: var(--bg);
}

.plate__media {
  border: 1px solid var(--ink);
  outline: 1px solid var(--line);
  outline-offset: 4px;
  overflow: hidden;
  background: var(--bg-alt);
}

.plate__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate--hero .plate__media {
  aspect-ratio: 16 / 10;
}

.plate figcaption,
.plate__caption p,
.plate__type p {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.plate--hero figcaption,
.plate figcaption {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.plate__index {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.plate__caption,
.plate__type {
  padding-top: 0.85rem;
}

.plate__caption h3,
.plate__type h3 {
  font-size: var(--step-1);
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.case {
  display: grid;
  gap: 1.75rem 1.25rem;
}

.case .plate__media {
  aspect-ratio: 4 / 3;
}

.plate--type .plate__type {
  border: 1px solid var(--ink);
  outline: 1px solid var(--line);
  outline-offset: 4px;
  min-height: 100%;
  padding: 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.65rem;
  background: var(--bg);
}

.plate--type h3 {
  font-size: var(--step-2);
}

.plate--type .plate__giant {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 0.8;
  color: color-mix(in srgb, var(--accent) 32%, var(--bg));
}

.oven {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.oven li {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 0 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--accent);
}

.oven h3 {
  font-size: var(--step-1);
  font-weight: 400;
}

.about__copy p + p {
  margin-top: 1em;
}

.plate__media--tall {
  aspect-ratio: 3 / 4;
}

.services {
  border-top: 1px solid var(--ink);
}

.services article {
  display: grid;
  gap: 0.4rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.svc__num {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.services h3 {
  font-size: var(--step-1);
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.mill {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.mill div {
  padding: 1.1rem 1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--bg);
}

.mill dt {
  font-family: var(--font-display);
  font-size: var(--step-1);
  margin-bottom: 0.4rem;
}

.mill dd {
  margin: 0;
  color: var(--ink-soft);
}

.route {
  display: grid;
  gap: 1rem;
}

.ticket {
  border: 1px solid var(--ink);
  outline: 1px solid var(--line);
  outline-offset: 5px;
  padding: 1.25rem 1.15rem 1.35rem;
  background: var(--bg);
}

.ticket h3 {
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.ticket address {
  font-style: normal;
  margin-top: 1rem;
  line-height: 1.55;
}

.order__facts .lede,
.order__facts > p {
  max-width: 38rem;
}

.facts {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.facts li {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.facts span:first-child {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.order__form {
  border: 1px solid var(--ink);
  outline: 1px solid var(--line);
  outline-offset: 5px;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--bg);
  display: grid;
  gap: 0.9rem;
}

.order__fields {
  display: grid;
  gap: 0.9rem;
}

.field select {
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  width: 100%;
}

.field select:focus {
  border-color: var(--accent);
}

.footer__grid {
  display: grid;
  gap: 1.5rem;
}

.footer__grid address {
  font-style: normal;
}

.footer__grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.footer__grid a {
  text-decoration: none;
}

.footer__grid a:hover {
  text-decoration: underline;
}

@media (min-width: 700px) {
  .oven {
    grid-template-columns: 1fr 1fr;
  }

  .oven li:last-child {
    grid-column: 1 / -1;
  }

  .mill {
    grid-template-columns: 1fr 1fr;
  }

  .route {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .services article {
    grid-template-columns: 4.5rem 1fr;
    gap: 1rem;
    align-items: start;
  }

  .order__fields {
    grid-template-columns: 1fr 1fr;
  }

  .case {
    grid-template-columns: 1fr 1fr;
  }

  .plate--lead {
    grid-row: span 2;
  }
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.15fr);
    align-items: end;
  }

  .about {
    grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.8fr);
    align-items: start;
  }

  .order {
    grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }

  .case {
    grid-template-columns: 1fr 1fr;
  }

  .plate--lead {
    grid-row: span 2;
  }

  .plate--lead,
  .plate--type {
    display: flex;
    flex-direction: column;
  }

  .plate--lead .plate__media,
  .plate--type .plate__type {
    flex: 1;
  }

  .plate--lead .plate__media {
    aspect-ratio: auto;
    min-height: 24rem;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1.2fr 0.8fr;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .case {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .plate--lead {
    grid-row: span 2;
    grid-column: 1;
  }
}

@media (max-width: 374px) {
  .brand__kicker {
    display: none;
  }

  .folio {
    letter-spacing: 0.08em;
  }
}
