/* Too Wet to Shred, after toowettoshred.com: berry and lagoon on white and blush,
   Gagalin capitals for the headlines, Montserrat for labels and figures, Open Sans
   to read. This sheet comes after the app's own, so of two equal rules this one wins.

   The brand has three looks. This sheet alone is look B (berry buttons, the site's
   white head); look-c.css and look-a.css come after it and change a few rules.
   Which one a page gets is decided by its head: head.html is C, the look the brand
   comes with, head-a.html and head-b.html are the other two. */
@font-face {
  font-family: Gagalin;
  src: url("Gagalin-Regular.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  font-weight: 100 900;
  src: url("montserrat.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  font-weight: 300 800;
  src: url("open-sans.woff2") format("woff2");
  font-display: swap;
}

:root {
  --berry: #9b1163;
  --ground: #f7f2f5;
  --paper: #fff;
  --ink: #333;
  --muted: #666;
  --rule: #e9dde4;
  --accent: var(--berry);
  --on-accent: #fff;
  --warn: var(--berry);
  --doubt: #875600;
  --serif: Gagalin, "Arial Narrow", sans-serif;
  --label: Montserrat, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1d1219;
    --paper: #2b1c26;
    --ink: #f5ecf1;
    --muted: #bba9b3;
    --rule: #47323e;
    --accent: #f0a3cd;
    --on-accent: #3a0624;
    --warn: #f0a3cd;
    --doubt: #e2b65a;
  }
}

body {
  font-family: "Open Sans", system-ui, sans-serif;
}

/* The head of the site: the berry strip, below it the badge on white. */
body::before {
  content: "";
  display: block;
  height: 6.25rem;
  border-top: 1.5rem solid var(--berry);
  background: var(--paper) url("logo.png") center / 3.75rem no-repeat;
  box-shadow: 0 1px 12px rgb(0 0 0 / 0.08);
}

h1 {
  margin-top: 1.25rem;
  font: 2rem/1.05 var(--serif);
  text-transform: uppercase;
}

/* The short berry line the site draws under a headline. */
h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.625rem;
  background: var(--accent);
}

/* The site's labels: small Montserrat capitals, set wide. */
h2 {
  font: 600 0.75rem/1.3 var(--label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Not where a headline is the name of a line. */
.row h2 {
  font: 600 1rem/1.3 var(--label);
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
}

.figure {
  font: 700 2rem/1 var(--label);
}

input,
select {
  border-radius: 10px;
}

.button {
  border-color: var(--accent);
  border-radius: 10px;
  color: var(--accent);
  font-family: var(--label);
}

/* "Book now": Gagalin on a rounded block with a soft shadow. */
.button.primary {
  min-height: 3.25rem;
  border: 0;
  color: var(--on-accent);
  font: 1.375rem/1 var(--serif);
  text-transform: uppercase;
  box-shadow: 0 2px 18px rgb(0 0 0 / 0.2);
}

.quiet {
  color: var(--accent);
}

.chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

/* The sheets of the pad become the site's white cards. */
.paper {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 2px 18px rgb(0 0 0 / 0.08);
}

/* What a person pays, at the foot of their bill: the site's berry footer, and a
   row of waves where the pad had its torn edge. */
footer.stub {
  --ink: var(--berry);
  --ground: #fff;
}

footer.stub::before {
  inset: -7px 0 auto;
  height: 8px;
  background: radial-gradient(circle at 50% 100%, var(--ink) 7.5px, transparent 8px) 0 0 / 16px 8px;
}
