/* Bäckerei Korn: flour, rye and wheat. One serif family (Fraunces) at soft, warm settings. */

@font-face {
  font-family: "Fraunces";
  src: url("../../fonts/fraunces.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../../fonts/mona-sans.woff") format("woff");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --bg: #f5efe3;
  --paper: #fffaf1;
  --ink: #24150b;
  --crust: #7b3f17;
  --wheat: #e7b04d;
  --wheat-soft: #f2dcaa;
  --muted: #6a5646;
  --text-font: "Fraunces", "Iowan Old Style", Georgia, serif;
  --gutter: clamp(16px, 3vw, 40px);
  --today-bg: var(--wheat);
  --today-ink: var(--ink);
  --status-bg: var(--paper);
  --focus: var(--ink);
  color-scheme: light;
}

body {
  font-variation-settings: "SOFT" 60, "WONK" 0;
}

.section-title {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  text-wrap: balance;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn--solid {
  background: var(--ink);
  color: var(--paper);
}

.btn--line {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.btn--line:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--wheat {
  background: var(--wheat);
  color: var(--ink);
}

/* header */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-block: 22px;
}

.logo {
  margin-right: auto;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  text-decoration: none;
}

.menu {
  display: flex;
  gap: 24px;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 2px no-repeat;
  transition: background-size 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.menu a:hover {
  background-size: 100% 2px;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(24px, 5vw, 72px) clamp(48px, 7vw, 96px);
}

.hero__text {
  display: grid;
  justify-items: start;
  gap: 28px;
}

.hero__title {
  font-size: clamp(3.25rem, 1.6rem + 6.4vw, 8rem);
  font-weight: 640;
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  text-wrap: balance;
}

.hero__lede {
  max-width: 34ch;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

.hero__disc {
  grid-area: 1 / 1;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--wheat);
}

.hero__art img {
  grid-area: 1 / 1;
  width: 108%;
  max-width: 108%;
  margin-top: 6%;
  rotate: -6deg;
}

.sticker {
  position: absolute;
  right: 4%;
  top: 6%;
  display: grid;
  place-items: center;
  width: clamp(104px, 11vw, 148px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.15;
  rotate: 12deg;
}

.sticker strong {
  display: block;
  font-size: 1.625rem;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* facts */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: clamp(56px, 8vw, 112px);
}

.facts li {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--paper);
  color: var(--muted);
}

.facts strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.375rem;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* today's shelf */
.shelf {
  padding-block: clamp(64px, 9vw, 128px);
  background: var(--paper);
}

.shelf__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 16px 48px;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.shelf__head p {
  max-width: 36ch;
  color: var(--muted);
}

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.board h3 {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  font-size: 1.5rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.items li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid rgba(36, 21, 11, 0.14);
}

.item {
  flex: 1;
  min-width: 0;
}

.item small {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
}

.price {
  flex: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* pre-order */
.preorder {
  padding-block: clamp(64px, 9vw, 128px);
  background: var(--ink);
  color: var(--bg);
  --focus: var(--wheat);
}

.preorder__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px clamp(32px, 6vw, 96px);
}

.preorder .section-title {
  grid-row: span 2;
  color: var(--wheat-soft);
}

.steps {
  display: grid;
  gap: 18px;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  font-size: 1.1875rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wheat);
  color: var(--ink);
  font-weight: 700;
}

.steps strong {
  color: var(--wheat-soft);
}

/* visit */
.visit {
  padding-block: clamp(64px, 9vw, 128px);
}

.visit .section-title {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 96px);
  align-items: start;
}

.hours {
  font-size: 1.1875rem;
}

.address {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 24px;
  background: var(--paper);
}

.address__lines {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.address__transit {
  color: var(--muted);
}

.address__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* footer */
.foot {
  padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px));
  background: var(--wheat);
  --focus: var(--ink);
}

.foot__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 32px;
}

.foot .logo {
  margin: 0;
}

.foot__links {
  display: flex;
  gap: 20px;
}

@media (max-width: 860px) {
  .hero,
  .shelf__head,
  .preorder__grid,
  .visit__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__art {
    order: -1;
    width: min(88%, 520px);
    justify-self: center;
  }

  .sticker {
    right: -2%;
    top: 0;
  }

  .preorder .section-title {
    grid-row: auto;
  }

  .board,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 560px) {
  .menu {
    order: 3;
    width: 100%;
    gap: 18px;
  }

  .top .status {
    order: 2;
  }

  .logo {
    width: 100%;
  }
}
