/* Skt. Peders Bageri — Website #107
   Heritage Bakery × Oven-Card Modernism
   Fully offline. HTML + CSS only. */

:root {
  --cream: #f5ead5;
  --paper: #fbf4e8;
  --brown: #7a5237;
  --burgundy: #6b2f37;
  --butter: #e3c76c;
  --sage: #7f9278;
  --charcoal: #34312d;
  --line: rgba(52,49,45,.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --shadow: 0 18px 44px rgba(82,58,39,.10);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--charcoal);
  background:
    linear-gradient(180deg, rgba(122,82,55,.05), transparent 18rem),
    var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  padding: .7rem 1rem;
  background: var(--burgundy);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 7rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(245,234,213,.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: grid;
  text-decoration: none;
  line-height: 1;
}

.brand-main {
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: -.015em;
}

.brand-sub {
  margin-top: .25rem;
  color: var(--burgundy);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .11em;
}

.main-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.main-nav a,
.footer-nav a {
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .04em;
}

.main-nav a {
  padding: .45rem 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--burgundy);
  border-color: currentColor;
}

.hero {
  padding: 4.7rem 0 5.4rem;
  scroll-margin-top: 7rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--burgundy);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.batch-ref {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .75rem;
  align-items: center;
  max-width: 570px;
  margin-bottom: 1rem;
  color: var(--brown);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .08em;
}

.batch-rule {
  height: 1px;
  background: var(--line);
}

h1,
h2,
h3 { margin-top: 0; }

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.04em;
}

h1 {
  max-width: 800px;
  margin-bottom: 1.3rem;
  font-size: clamp(3.7rem, 7.3vw, 7rem);
  line-height: .95;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 4.9vw, 4.2rem);
  line-height: 1;
}

h3 {
  margin-bottom: .45rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
}

p {
  margin-top: 0;
  color: #635c53;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 1.8rem;
  font-size: 1.04rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .82rem 1.3rem;
  border: 1px solid var(--burgundy);
  background: var(--burgundy);
  color: var(--paper);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(107,47,55,.18);
}

.hero-note {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: .9rem;
  max-width: 560px;
  margin-top: 2rem;
}

.stamp-glyph {
  position: relative;
  width: 42px;
  height: 42px;
  border: 2px solid var(--brown);
  border-radius: 50%;
}

.stamp-glyph::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed var(--burgundy);
  border-radius: 50%;
}

.hero-note p {
  margin-bottom: 0;
  font-family: var(--mono);
  font-size: .75rem;
}

.hero-visual {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(227,199,108,.08), transparent 58%),
    var(--paper);
  box-shadow: var(--shadow);
}

.tray-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(52,49,45,.035) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(90deg, rgba(52,49,45,.035) 1px, transparent 1px) 0 0 / 42px 42px;
}

.oven-card {
  position: absolute;
  left: 30px;
  top: 30px;
  width: 270px;
  padding: 1rem;
  border: 1px solid var(--charcoal);
  background: rgba(245,234,213,.95);
  box-shadow: 10px 10px 0 rgba(122,82,55,.08);
}

.oven-head {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  color: var(--burgundy);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .08em;
}

.oven-code {
  padding: .1rem .35rem;
  background: var(--charcoal);
  color: var(--paper);
}

.oven-card strong {
  display: block;
  margin-top: .5rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
}

.oven-card small {
  display: block;
  margin-top: .2rem;
  color: var(--brown);
  font-family: var(--mono);
  font-size: .56rem;
}

.batch-lines {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
}

.batch-lines div {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: .55rem;
  align-items: center;
}

.batch-lines span,
.batch-lines em {
  color: var(--brown);
  font-family: var(--mono);
  font-size: .52rem;
  font-style: normal;
}

.batch-lines i {
  height: 1px;
  background: var(--line);
}

.score-card {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(245,234,213,.72);
}

.score-card i {
  position: absolute;
  display: block;
  width: 4px;
  background: var(--brown);
  transform: rotate(28deg);
}

.score-one {
  right: 48px;
  top: 78px;
  width: 150px;
  height: 170px;
}

.score-one i:nth-child(1) { left: 44px; top: 22px; height: 112px; }
.score-one i:nth-child(2) { left: 76px; top: 30px; height: 106px; }
.score-one i:nth-child(3) { left: 106px; top: 40px; height: 92px; }

.score-two {
  left: 84px;
  bottom: 64px;
  width: 170px;
  height: 112px;
}

.score-two i:nth-child(1) { left: 56px; top: 10px; height: 86px; }
.score-two i:nth-child(2) { left: 96px; top: 16px; height: 78px; }

.batch-stamp {
  position: absolute;
  right: 56px;
  bottom: 52px;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 2px solid var(--burgundy);
  border-radius: 50%;
  color: var(--burgundy);
  text-align: center;
  transform: rotate(-8deg);
}

.batch-stamp span,
.batch-stamp small {
  font-family: var(--mono);
  font-size: .56rem;
}

.batch-stamp strong {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.paper-tag {
  position: absolute;
  left: 30px;
  bottom: 24px;
  padding: .45rem .65rem;
  background: var(--brown);
  color: var(--paper);
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .07em;
}

.about-section {
  background:
    linear-gradient(90deg, rgba(127,146,120,.08), transparent 34%),
    #faf3e7;
}

.about-grid {
  display: grid;
  grid-template-columns: 70px .9fr 1.1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: start;
}

.section-index {
  color: var(--brown);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
}

.about-copy {
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.about-copy p { font-size: 1.02rem; }

.section-heading {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  margin-bottom: 2rem;
}

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

.batch-card {
  position: relative;
  min-height: 325px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(82,58,39,.05);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .95rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--brown);
  font-family: var(--mono);
  font-size: .62rem;
}

.mini-stamp {
  width: 26px;
  height: 26px;
  border: 4px solid;
  border-radius: 50%;
}

.mini-stamp.burgundy { border-color: var(--burgundy); }
.mini-stamp.butter { border-color: var(--butter); }
.mini-stamp.sage { border-color: var(--sage); }

.card-band {
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: var(--paper);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.band-brown { background: var(--brown); }
.band-burgundy { background: var(--burgundy); }
.band-sage { background: var(--sage); }

.card-copy {
  padding: 1.5rem 1rem .8rem;
}

.card-copy p { margin-bottom: 0; }

.score-lines {
  display: flex;
  gap: 12px;
  padding: .6rem 1rem;
}

.score-lines i {
  width: 3px;
  height: 30px;
  background: var(--brown);
  transform: rotate(28deg);
}

.card-foot {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
  color: var(--brown);
  font-family: var(--mono);
  font-size: .58rem;
}

.bake-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.bake-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(52,49,45,.03) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(52,49,45,.03) 1px, transparent 1px) 0 0 / 32px 32px,
    #eee5d6;
}

.bake-heading {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  max-width: 860px;
  margin-bottom: 3rem;
}

.bake-heading p:last-child { max-width: 700px; }

.sequence-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.sequence-step {
  position: relative;
  min-height: 185px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(251,244,232,.86);
}

.sequence-no {
  display: block;
  margin-bottom: 1rem;
  color: var(--burgundy);
  font-family: var(--mono);
  font-size: .64rem;
}

.sequence-stamp {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border: 3px solid var(--brown);
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 8px var(--butter);
}

.sequence-step strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.sequence-score {
  display: block;
  width: 46px;
  height: 3px;
  margin-top: .8rem;
  background: var(--brown);
  transform: rotate(-12deg);
}

.sequence-step small {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  color: var(--brown);
  font-family: var(--mono);
  font-size: .58rem;
}

.bake-line {
  position: absolute;
  right: 0;
  height: 6px;
  opacity: .38;
}

.line-one {
  top: 82px;
  width: 34%;
  background: var(--burgundy);
}

.line-two {
  bottom: 76px;
  width: 48%;
  background: var(--sage);
}

.bake-stamp {
  position: absolute;
  right: 5%;
  top: 10%;
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border: 2px dashed rgba(122,82,55,.18);
  border-radius: 50%;
  color: rgba(122,82,55,.18);
  font-family: var(--serif);
  font-size: 2rem;
}

.closing-section { background: #f2e9dc; }

.closing-grid {
  display: grid;
  grid-template-columns: 1fr minmax(330px, .8fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.closing-copy { max-width: 700px; }

.closing-art {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.closing-ticket {
  position: absolute;
  left: 26px;
  top: 26px;
  width: 245px;
  padding: 1rem;
  border: 1px solid var(--charcoal);
  background: rgba(245,234,213,.95);
}

.closing-ticket span,
.closing-ticket strong,
.closing-ticket small { display: block; }

.closing-ticket span,
.closing-ticket small {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .08em;
}

.closing-ticket span { color: var(--burgundy); }

.closing-ticket strong {
  margin: .25rem 0;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
}

.closing-stamp {
  position: absolute;
  right: 42px;
  top: 38px;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 2px solid var(--burgundy);
  border-radius: 50%;
  color: var(--burgundy);
  transform: rotate(-8deg);
}

.closing-stamp span {
  font-family: var(--mono);
  font-size: .58rem;
}

.closing-stamp strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
}

.closing-score {
  position: absolute;
  right: 90px;
  width: 4px;
  background: var(--brown);
  transform: rotate(28deg);
}

.cs1 { bottom: 40px; height: 92px; }
.cs2 { right: 120px; bottom: 48px; height: 82px; }
.cs3 { right: 150px; bottom: 56px; height: 70px; }

.closing-tray {
  position: absolute;
  left: 36px;
  bottom: 32px;
  width: 150px;
  height: 56px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 32%, var(--line) 33%, transparent 34%, transparent 65%, var(--line) 66%, transparent 67%);
}

.legal-section { background: #e4d9c9; }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.legal-card {
  padding: 2rem;
  border: 1px solid var(--line);
  background: rgba(251,244,232,.68);
}

.legal-card h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -.03em;
}

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

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  background: #e4d9c9;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.footer-brand {
  display: grid;
  gap: .15rem;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
}

.footer-brand span {
  color: var(--burgundy);
  font-family: var(--mono);
  font-size: .6rem;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: auto;
    padding: 1rem 0;
    align-items: flex-start;
    flex-direction: column;
    gap: .7rem;
  }

  .hero-grid,
  .closing-grid { grid-template-columns: 1fr; }

  .hero-visual { min-height: 450px; }

  .about-grid { grid-template-columns: 56px 1fr; }
  .about-copy { grid-column: 2; }

  .batch-grid { grid-template-columns: 1fr; }
  .batch-card { min-height: 250px; }

  .sequence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 1160px); }
  .section { padding: 4rem 0; }

  h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  h2 { font-size: clamp(2.2rem, 10vw, 3.1rem); }

  .hero { padding-top: 3rem; }

  .batch-ref { grid-template-columns: 1fr; }
  .batch-rule { display: none; }

  .hero-visual { min-height: 390px; }

  .oven-card {
    left: 20px;
    top: 20px;
    width: 215px;
  }

  .score-one {
    right: 24px;
    top: 76px;
    width: 110px;
    height: 136px;
  }

  .score-two {
    left: 42px;
    bottom: 50px;
    width: 126px;
  }

  .batch-stamp {
    right: 28px;
    bottom: 38px;
    width: 82px;
    height: 82px;
  }

  .about-grid,
  .section-heading,
  .bake-heading {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .about-copy { grid-column: auto; }

  .sequence-grid { grid-template-columns: 1fr; }
  .sequence-step { min-height: 145px; }

  .bake-stamp {
    right: -10px;
    top: 16px;
    transform: scale(.72);
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: .55rem 1rem;
  }

  .main-nav a { font-size: .72rem; }

  .hero-visual { min-height: 350px; }

  .oven-card {
    max-width: 66%;
    padding: .8rem;
  }

  .score-one { opacity: .6; }
  .score-two { opacity: .55; }

  .closing-ticket {
    left: 18px;
    top: 18px;
    max-width: 66%;
  }

  .closing-stamp { right: 22px; }

  .legal-card,
  .bake-panel {
    padding: 1.35rem;
  }
}

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

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