/* Tin Spoon Bakehouse — original styles for a fictional Cordial Notes demo. */

@font-face {
  font-family: "Crimson Pro";
  src: url("../fonts/CrimsonPro-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Crimson Pro";
  src: url("../fonts/CrimsonPro-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f3ebe0;
  --paper: #fbf6ee;
  --foam: #fffcf7;
  --ink: #1c1612;
  --ink-soft: #3d342c;
  --muted: #5c534b;
  --pewter: #4c5854;
  --copper: #8f3e28;
  --copper-dark: #732f1c;
  --copper-soft: #c46b52;
  --butter: #e2b657;
  --sage: #4f6b5a;
  --sage-soft: #e8f0ea;
  --line: #e4d5c4;
  --shadow: 0 18px 40px rgba(28, 22, 18, 0.08);
  --radius: 18px;
  --font-serif: "Crimson Pro", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --font-sans: "Outfit", "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --max: 72rem;
  --narrow: 44rem;
  --header-h: 4.5rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(143, 62, 40, 0.06), transparent 12rem),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(28, 22, 18, 0.008) 3px,
      rgba(28, 22, 18, 0.008) 4px
    ),
    var(--cream);
  min-height: 100vh;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--copper);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--copper-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-toggle-label:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--foam);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}

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

.visually-hidden,
.honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(calc(100% - 2rem), var(--narrow));
  margin-inline: auto;
}

/* Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

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

.brand img {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--foam);
  cursor: pointer;
  position: relative;
}

.nav-toggle-label .nav-bars,
.nav-toggle-label .nav-bars::before,
.nav-toggle-label .nav-bars::after {
  position: absolute;
  left: 0.7rem;
  width: 1.35rem;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  content: "";
}

.nav-toggle-label .nav-bars {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle-label .nav-bars::before {
  top: -7px;
}

.nav-toggle-label .nav-bars::after {
  top: 7px;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 999px;
}

.site-nav a:hover {
  background: var(--cream);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--foam);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  margin-left: 0.35rem;
  background: var(--copper);
  color: #fff !important;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.header-cta:hover {
  background: var(--copper-dark);
}

@media (max-width: 720px) {
  .nav-toggle-label {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.75rem 1rem 1rem;
  }

  .nav-toggle:checked ~ .site-nav,
  .nav-toggle:focus ~ .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.15rem;
  }

  .site-nav a,
  .header-cta {
    width: 100%;
    margin: 0;
    justify-content: center;
    border-radius: 12px;
  }
}

/* Hero
   ========================================================================== */

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--copper);
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--copper);
}

h1,
h2,
h3,
.font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--copper-dark);
  color: #fff;
}

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

.btn-secondary:hover {
  background: var(--ink);
  color: var(--foam);
}

.hero-art {
  background: transparent;
}

.hero-art svg,
.hero-art img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

/* Page intro (interior pages)
   ========================================================================== */

.page-intro {
  padding: 3rem 0 1.5rem;
}

.page-intro h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin-bottom: 0.75rem;
}

/* Sections
   ========================================================================== */

.section {
  padding: 3.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 0.6rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
}

.card h3 {
  margin: 0.8rem 0 0.4rem;
  font-size: 1.45rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

.icon-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--sage-soft);
  color: var(--sage);
  display: grid;
  place-items: center;
}

.icon-badge svg {
  width: 1.6rem;
  height: 1.6rem;
}

/* Hours + map
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.hours-card,
.map-card {
  padding: 1.6rem;
}

.hours-card h2,
.map-card h2 {
  margin: 0 0 1rem;
  font-size: 1.8rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.hours-table th {
  font-weight: 500;
  color: var(--ink-soft);
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: 0;
}

.closed {
  color: var(--muted);
  font-style: italic;
}

.map-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sage-soft);
}

.map-note {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Reviews
   ========================================================================== */

.sample-banner {
  display: inline-block;
  background: #f3e3c2;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.stars {
  color: var(--copper);
  letter-spacing: 0.08em;
  font-size: 1rem;
  margin: 0 0 0.6rem;
}

.review blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.45;
}

.review cite {
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

/* CTA band
   ========================================================================== */

.cta-band {
  background: var(--ink);
  color: var(--foam);
  border-radius: 28px;
  padding: 2.4rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--foam);
}

.cta-band p {
  margin: 0;
  color: #e8d7c0;
  max-width: 32rem;
}

.cta-band .btn-primary {
  background: var(--butter);
  color: var(--ink);
}

.cta-band .btn-primary:hover {
  background: #ecc56a;
  color: var(--ink);
}

/* Footer
   ========================================================================== */

.site-footer {
  margin-top: 3rem;
  background: var(--ink);
  color: #e8d7c0;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h2 {
  color: var(--foam);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 600;
  margin: 0 0 0.8rem;
}

.site-footer p,
.site-footer address {
  font-style: normal;
  margin: 0 0 0.5rem;
}

.site-footer a {
  color: #f6efe4;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0 0 0.35rem;
}

.demo-note {
  margin: 2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(232, 215, 192, 0.2);
  font-size: 0.92rem;
  color: #c9b8a2;
}

/* About / services extras
   ========================================================================== */

.prose {
  max-width: 42rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

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

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.menu-list {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.menu-list caption {
  text-align: left;
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  caption-side: top;
}

.menu-list th,
.menu-list td {
  text-align: left;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}

.menu-list th {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  width: 40%;
  padding-right: 1rem;
}

.menu-list td {
  color: var(--ink-soft);
}

.price {
  text-align: right !important;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  width: 5rem;
}

.service-block {
  padding: 1.6rem;
  margin-bottom: 1.25rem;
}

.service-block h2 {
  margin: 0 0 0.4rem;
  font-size: 1.8rem;
}

.service-block > p {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
}

/* Contact form
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.25rem;
}

.contact-card,
.form-card {
  padding: 1.6rem;
}

.contact-card h2,
.form-card h2 {
  margin: 0 0 1rem;
  font-size: 1.7rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin: 0 0 1rem;
}

.contact-list span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

.form-note,
.form-legal {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--foam);
  border: 1px solid #d3c4b0;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  min-height: 3rem;
}

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

.field input:hover,
.field textarea:hover {
  border-color: var(--pewter);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

button.btn {
  border: 2px solid transparent;
}

/* 404
   ========================================================================== */

.not-found {
  min-height: calc(100vh - 16rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

.not-found p {
  color: var(--ink-soft);
  font-size: 1.15rem;
}

/* Utility
   ========================================================================== */

.band-alt {
  background: transparent;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .split,
  .values,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .cta-band {
    padding: 1.8rem 1.3rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
