/* Hey Simmer's website: one stylesheet for every page, in the app's look (design concept M). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --plate: #ffffff;
  --surface: #ffffff;
  --rice: #f3f3f0;
  --ink: #1d1e22;
  --ink2: #45474e;
  --mute: #686b73;
  --line: #ecebe8;
  --line2: #dedcd9;
  --persimmon: #f2612e;
  --persimmon-text: #b93f16;
  --wash: #ffeee6;
  --disc: #ffeee6; /* behind Simmer: stays light, his outline is dark ink */
  --herb: #2e7553;
  --beet: #b4234a;
  --inverse: #1d1e22;
  --on-inverse: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --plate: #141518;
    --surface: #1f2024;
    --rice: #26272b;
    --ink: #f3f3f0;
    --ink2: #c9cacf;
    --mute: #9a9da5;
    --line: #2c2d32;
    --line2: #3a3c42;
    --persimmon-text: #ff8a5c;
    --wash: #3a2219;
    --disc: #ffd9c7;
    --herb: #6fcb9a;
    --beet: #ff6b8b;
    --inverse: #f3f3f0;
    --on-inverse: #141518;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--plate);
  color: var(--ink);
  font: 400 17px/1.55 "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--persimmon-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(34px, 7vw, 54px); font-weight: 700; }
h2 { font-size: 25px; font-weight: 650; margin-top: 44px; }
h3 { font-size: 19px; font-weight: 600; margin-top: 26px; }
p, ul, ol { margin: 12px 0 0; }
li + li { margin-top: 6px; }
strong { font-weight: 650; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Header and footer */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 650 20px "Bricolage Grotesque", sans-serif; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; gap: 18px; font-size: 15px; font-weight: 600; }
.top nav a { color: var(--ink2); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--persimmon-text); }

.foot { margin-top: 72px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.foot a { color: var(--mute); }
.foot .spacer { flex: 1; }

/* Legal and support pages */
.page { padding-top: 44px; }
.page .lede { color: var(--ink2); font-size: 19px; margin-top: 14px; }
.updated { color: var(--mute); font-size: 14px; margin-top: 10px; }

.simmer-says { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.simmer-says img { width: 64px; height: 64px; flex: none; background: var(--disc); border-radius: 50%; padding: 6px; }
.simmer-says p { margin: 0; background: var(--rice); color: var(--ink2); padding: 12px 16px; border-radius: 18px 18px 18px 6px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-top: 18px; }
.card h3 { margin-top: 0; }
.card p:first-child { margin-top: 0; }

.short { list-style: none; padding: 0; }
.short li { position: relative; padding-left: 30px; }
.short li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2612E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15.5px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.table th { font-weight: 650; color: var(--ink); width: 30%; }
.table td { color: var(--ink2); }
@media (max-width: 560px) {
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .table th, .table td { border: 0; padding: 2px 0; }
}

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--persimmon-text); font: 600 22px/1 "Bricolage Grotesque", sans-serif; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink2); margin-top: 8px; }

/* Form */
form { margin-top: 18px; }
label { display: block; font-weight: 650; font-size: 15px; margin-top: 16px; }
label .optional { color: var(--mute); font-weight: 400; }
input[type="email"], textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line2); border-radius: 12px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--persimmon); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; margin-top: 20px;
  background: var(--inverse); color: var(--on-inverse); border: 0; border-radius: 999px; font: 650 16px "Instrument Sans", sans-serif;
  text-decoration: none; cursor: pointer;
}
.button:disabled { opacity: 0.5; cursor: default; }
.button.accent { background: var(--persimmon); color: #1d1e22; }
.status { margin-top: 14px; font-weight: 600; min-height: 1.5em; }
.status.ok { color: var(--herb); }
.status.error { color: var(--beet); }
.small { color: var(--mute); font-size: 14px; }

/* Landing page */
.hero { padding: 56px 0 8px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.hero .lede { font-size: 20px; color: var(--ink2); margin-top: 16px; }
.hero .mascot { width: 100%; max-width: 260px; justify-self: center; background: var(--disc); border-radius: 50%; padding: 26px; }
.pill { display: inline-block; background: var(--wash); color: var(--persimmon-text); font-weight: 650; font-size: 14px; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.soon { color: var(--mute); font-size: 15px; margin-top: 12px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.features .card { margin-top: 0; }
.features h3 { font-size: 18px; }
.features p { color: var(--ink2); font-size: 15.5px; margin-top: 6px; }
@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero .mascot { max-width: 180px; grid-row: 1; }
  .features { grid-template-columns: 1fr; }
  .top nav { gap: 12px; font-size: 14px; }
}
