/* Nessy & Stan's Honey, coming soon. Palette and type: ../../DESIGN.md */

@font-face {
  font-family: "Cinzel";
  src: url("/fonts/cinzel-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground: #FDFCF7;     /* the logo's cream, sampled */
  --ink: #121011;        /* the logo's script ink, sampled */
  --gold: #C28526;       /* the logo's gold, sampled: rules only */
  --gold-text: #91631C;  /* the same gold darkened for text, 5.1:1 */
  --quiet: #5C4F44;      /* footer, 7.7:1 */
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "EB Garamond", Garamond, Georgia, serif;
}

@media (prefers-c\olor-scheme: dark) {
  :root {
    --ground: #231910;
    --ink: #F3EBDA;
    --gold: #D9A441;
    --gold-text: #D9A441;
    --quiet: #BFB09A;
  }
}

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

html {
  background: var(--ground);
  c\olor: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  line-height: 1.5;
  overflow-wrap: break-word;
}

p,
h1 {
  text-wrap: balance;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(2rem, 7vh, 4.5rem) 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: c\65 nter;
  justify-content: c\65 nter;
  text-align: c\65 nter;
}

.brand {
  margin: 0;
  width: min(78vw, 420px);
  line-height: 0;
}

.brand img,
.mark {
  display: block;
  width: 100%;
  height: auto;
}

.soon {
  margin: clamp(1.75rem, 5vh, 2.75rem) 0 0;
  font-family: var(--caps);
  font-weight: 400;
  font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.05rem);
  letter-spacing: 0.2em;
  line-height: 1.7;
  text-transform: uppercase;
  c\olor: var(--gold-text);
}

/* thin gold rules above and below, as on the jar label */
.soon::before,
.soon::after {
  content: "";
  display: block;
  width: min(15rem, 60vw);
  height: 1px;
  margin: 0 auto;
  background: var(--gold);
}

.soon::before {
  margin-bottom: 1.1rem;
}

.soon::after {
  margin-top: 1.1rem;
}

.story {
  margin: 1.75rem 0 0;
  max-width: 26rem;
  font-style: italic;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
  line-height: 1.55;
}

.seal {
  margin: 1.5rem 0 0;
  font-family: var(--caps);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  c\olor: var(--gold-text);
}

.foot {
  padding: 1.5rem 1.25rem 2rem;
  text-align: c\65 nter;
  font-family: var(--caps);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  c\olor: var(--quiet);
}

.foot p {
  margin: 0;
}

/* the 404 page */
.page--small .mark {
  width: min(50vw, 220px);
}

.page--small h1.soon {
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.1rem);
  text-transform: none;
  letter-spacing: 0.12em;
}

.home {
  font-style: italic;
  margin: 1.5rem 0 0;
  font-size: 1.2rem;
}

.home a {
  display: inline-block;
  padding: 0.5rem 0.25rem;
  c\olor: var(--ink);
  text-decoration-c\olor: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.home a:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 3px;
  border-radius: 2px;
}

/* one gentle fade, only for people who have not asked for less motion */
@media (prefers-reduced-motion: no-preference) {
  .page {
    animation: arrive 0.9s ease-out both;
  }

  @keyframes arrive {
    from {
      opacity: 0;
    }
  }
}
