/* dialcandy.app. Hand-written; the HTML pages are generated by `python -m wfpipe site`.
   Fonts are self-hosted (SIL OFL, see fonts/) so the site makes no third-party requests. */
@font-face {
  font-family: "Bagel Fat One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/bagel-fat-one-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree"; font-style: italic; font-weight: 300 900; font-display: swap;
  src: url("/fonts/figtree-latin-wght-italic.woff2") format("woff2");
}
:root {
  --sugar: #FFE3EF;
  --sugar-deep: #FFC9DF;
  --bubblegum: #FF4F9A;
  --grape: #34175F;
  --grape-soft: #6B4A94;
  --mint: #9BE8CF;
  --lemon: #FFE66B;
  --paper: #FFFFFF;
  --bg: var(--sugar);
  --ink: var(--grape);
  --ink-soft: var(--grape-soft);
  --plate: var(--sugar-deep);
  --link: #C3176A;
  --case: #1C1A1F;
  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1F0F33;
    --ink: #FFE3EF;
    --ink-soft: #D9C2EC;
    --plate: #3A1D5C;
    --link: #FF8CC0;
    --case: #050406;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1F0F33;
  --ink: #FFE3EF;
  --ink-soft: #D9C2EC;
  --plate: #3A1D5C;
  --link: #FF8CC0;
  --case: #050406;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--bubblegum); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); color: var(--grape); padding: 8px 14px; z-index: 10; }

/* header and footer */
.top {
  max-width: 1120px; margin: 0 auto; padding: 20px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark {
  font: 400 1.75rem/1 var(--display);
  color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
  text-shadow: 2px 2px 0 var(--bubblegum);
}
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.top nav a:hover { color: var(--link); }

.foot {
  max-width: 1088px; margin: 64px 16px 0; padding: 28px 0 40px;
  border-top: 2px dotted var(--ink-soft);
  color: var(--ink-soft); font-size: 0.9375rem;
}
@media (min-width: 1120px) { .foot { margin-left: auto; margin-right: auto; } }
.foot p { margin: 0 0 6px; }
.foot a { margin-right: 16px; }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.9rem; }
h3 a { color: var(--ink); text-decoration: none; }
h3 a:hover { color: var(--link); }
.lede { font-size: 1.25rem; line-height: 1.5; max-width: 34em; }
.small { font-size: 0.9375rem; color: var(--ink-soft); }

/* the watch */
.watch { display: flex; flex-direction: column; align-items: center; }
.case {
  position: relative;
  width: min(230px, 60vw); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--case);
  padding: 4.5%;
  box-shadow: 0 0 0 3px #3B3842 inset, 0 18px 30px -12px rgba(52, 23, 95, 0.45);
}
.case.big { width: min(380px, 72vw); }
.art, .art svg { width: 100%; height: 100%; }
.art svg { border-radius: 50%; }
.art[hidden] { display: none; }
.art.pop { animation: pop 260ms cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(0.94); } to { transform: scale(1); } }

.swatches { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.swatches button {
  width: 42px; height: 42px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 3px solid var(--paper);
  background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%);
  box-shadow: 0 2px 6px rgba(52, 23, 95, 0.25);
}
.swatches button[aria-checked="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.swatch-name { margin: 10px 0 0; font-weight: 700; min-height: 1.6em; }

/* home hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px;
  padding: 32px 0 72px;
}
.hero .watch { position: relative; }
.hero .case.big::before {
  content: ""; position: absolute; inset: -9%; z-index: -1;
  border-radius: 50%; background: var(--plate);
}
.hint { color: var(--ink-soft); font-style: italic; }

/* face list */
.faces > h2 { margin-bottom: 28px; }
.face-row {
  display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center;
  padding: 36px 0; border-top: 2px dotted var(--ink-soft);
}
.face-row:nth-of-type(even) { grid-template-columns: 1fr 260px; }
.face-row:nth-of-type(even) .face-art { order: 2; }
.face-art { display: block; justify-self: center; }
.face-copy p { margin: 0 0 10px; max-width: 34em; }
.palettes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dots { display: inline-flex; }
.dot {
  width: 22px; height: 22px; border-radius: 50%; margin-right: -6px;
  border: 2px solid var(--paper);
  background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%);
}
.price { font-weight: 700; }

/* face page */
.face-hero {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 24px 0 48px;
}
.face-hero .case.big::before {
  content: ""; position: absolute; inset: -9%; z-index: -1; border-radius: 50%; background: var(--plate);
}
.face-hero .watch { position: relative; }
.button {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  background: var(--bubblegum); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 0 #B8125F;
}
.button:hover { background: #F23B8A; }
.button.soon {
  background: transparent; color: var(--ink); box-shadow: none;
  border: 2px dashed var(--ink-soft);
}

.prose { max-width: 40em; }
.prose h2 { margin-top: 1.4em; font-size: 1.75rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--bubblegum); }
.doc { padding-top: 24px; }

@media (max-width: 760px) {
  .hero, .face-hero { grid-template-columns: 1fr; gap: 48px; padding-bottom: 48px; }
  .face-row, .face-row:nth-of-type(even) { grid-template-columns: 1fr; gap: 20px; }
  .face-row:nth-of-type(even) .face-art { order: 0; }
  .top nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .art.pop { animation: none; }
}
