/* The Sweet Side, coming-soon page. Palette and type from the brand kit (SWEETSIDE-BRAND). */

@font-face {
  font-family: "Fraunces Sweet";
  src: url("/assets/fonts/fraunces-subset.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Yellowtail";
  src: url("/assets/fonts/yellowtail-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --sugar: #F5F0ED;
  --blush: #F4D2D0;
  --pink: #ECACA9;
  --strawberry: #DF5656;
  --cherry: #A81411;
  --cream: #F7E3D7;
  --cocoa: #2A1210;
  --ink: #3A1512;
  --muted: #7A5550;
  --line: #E6D6D2;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  --display: "Fraunces Sweet", Georgia, "Times New Roman", serif;
  --script: "Yellowtail", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--sugar);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  grid-template-areas: "intro" "hero" "foot";
  align-content: start;
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Left, or top on phones: the logo and the words */
.intro {
  grid-area: intro;
  min-width: 0;
  padding: 40px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  margin: 0;
  width: min(72vw, 280px);
}
.logo img { width: 100%; height: auto; }

.lede {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 8.5vw, 40px);
  line-height: 1.08;
  letter-spacing: 0.012em;
  color: var(--cherry);
  margin: 4px 0 0;
}

.soon {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(24px, 6.4vw, 30px);
  line-height: 1.2;
  color: var(--strawberry);
  margin: 6px 0 0;
}

.orders {
  margin: 28px 0 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  border-radius: 14px;
  min-width: min(100%, 260px);
}

.orders-label {
  margin: 0 0 6px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.orders-message {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.orders-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  text-align: left;
}
.orders-list a {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  overflow-wrap: anywhere;
  font-size: 17px;
  font-weight: 500;
  color: var(--cherry);
  text-decoration: none;
  text-underline-offset: 3px;
  font-variant-numeric: tabular-nums;
}
.orders-list a:hover,
.orders-list a:focus-visible { text-decoration: underline; }
.orders-list a:focus-visible { outline: 2px solid var(--strawberry); outline-offset: 4px; border-radius: 4px; }
.orders-kind {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot {
  grid-area: foot;
  padding: 4px 16px 28px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.foot p { margin: 0; }

/* The cake */
.hero {
  grid-area: hero;
  min-width: 0;
  margin: 0;
  padding: 0 16px 24px;
}
.hero img {
  width: 100%;
  aspect-ratio: 1042 / 1300;
  object-fit: cover;
  border-radius: 18px;
  background: var(--blush);
}

/* Tablet and up: the cake fills the right half, the words sit on the left */
@media (min-width: 900px) {
  .page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas: "intro hero" "foot hero";
    align-content: stretch;
  }
  .intro {
    padding: 48px clamp(32px, 6vw, 96px);
    justify-content: center;
  }
  .logo { width: min(34vw, 360px); }
  .lede { font-size: clamp(36px, 3.6vw, 46px); }
  .soon { font-size: clamp(26px, 2.5vw, 32px); }
  .orders { margin-top: 32px; }
  .foot { padding: 0 clamp(32px, 6vw, 96px) 28px; }
  .hero {
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .hero img {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    aspect-ratio: auto;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .orders-list a { transition: color 120ms ease; }
}
