:root{--accent:#24456b;--on-accent:#ffffff;--accent-dark:#8fb3dc;--tint:#e8eef5;--tint-dark:#1a2533}
/* The funnel sites' one stylesheet. System fonts only: nothing is loaded from another host.
   Layout uses logical sides (inline-start/end) so a right-to-left language can follow later. */
:root {
  --bg: #faf8f5;
  --panel: #ffffff;
  --ink: #1d1b19;
  --muted: #5d5853;
  --line: #e6e1da;
  --good: #1f7a3f;
  --warn: #9a5b00;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --panel: #1d1c1a;
    --ink: #f1eee9;
    --muted: #b3ada5;
    --line: #34312d;
    --good: #6fd08f;
    --warn: #f0b45a;
    --accent: var(--accent-dark);
    --tint: var(--tint-dark);
    --on-accent: #10201e;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
}
a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
img,
canvas {
  max-width: 100%;
}
.wrap {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  inset-inline-start: 8px;
  top: -40px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 2;
}
.skip:focus {
  top: 8px;
}
.notice {
  margin: 0;
  padding: 6px 16px;
  text-align: center;
  font-size: 14px;
  background: var(--ink);
  color: var(--bg);
}

/* header */
.top {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}
.brand .mark {
  color: var(--accent);
}
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}
.menu a {
  color: var(--muted);
  text-decoration: none;
}
.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* page */
main {
  padding-block: 32px 48px;
}
h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
h2 {
  font-size: 23px;
  line-height: 1.25;
  margin: 36px 0 10px;
}
.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0;
  max-width: 64ch;
}
.byline {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}
.fine {
  font-size: 14px;
  color: var(--muted);
}
.prose {
  max-width: 68ch;
}
.prose li {
  margin-block: 8px;
}
.prose ol,
.prose ul {
  padding-inline-start: 1.3em;
}
.looks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
}
.looks div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.looks dt {
  font-weight: 700;
}
.looks dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 16px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  filter: brightness(1.08);
  text-decoration: none;
}
.button--quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

/* the tool */
.tool {
  margin-block: 28px 8px;
}
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 20px;
  text-align: center;
  background: var(--tint);
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
}
.drop strong {
  font-size: 20px;
}
.drop span:not(.button) {
  color: var(--muted);
  font-size: 15px;
}
.drop .button {
  margin-top: 8px;
}
.drop.is-over {
  filter: brightness(0.97);
}
.drop:has(+ input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.tool__problem {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--panel);
  border-inline-start: 4px solid var(--warn);
}
.tool__out {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.result__working {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1s ease-in-out infinite alternate;
}
@keyframes pulse {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dot {
    animation: none;
  }
}
.result__summary {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  background: var(--bg);
}
.result__summary.is-good {
  color: var(--good);
}
.result__grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 680px) {
  .result__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}
.result__photo {
  position: relative;
  /* photos are never mirrored, whatever way the page reads */
  direction: ltr;
  max-width: 420px;
}
.result__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.result__face {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.45);
  border-radius: 6px;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.row h2 {
  font-size: 17px;
  margin: 0;
}
.row p {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.row__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chip {
  font-size: 13px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--warn);
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.chip.is-good {
  color: var(--good);
}
.previews h2 {
  font-size: 17px;
  margin: 24px 0 10px;
}
.rounds {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  direction: ltr;
}
.round {
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line);
}
.round--160 {
  width: 160px;
  height: 160px;
}
.round--80 {
  width: 80px;
  height: 80px;
}
.round--40 {
  width: 40px;
  height: 40px;
}
.result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* questions, related, cards */
.questions details {
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}
.questions summary {
  font-weight: 600;
  cursor: pointer;
}
.questions details p {
  margin: 8px 0 0;
  color: var(--muted);
}
.cards {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.cards a {
  display: block;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.cards a:hover {
  border-color: var(--accent);
}
.cards span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  margin-top: 4px;
}
.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.related li span {
  display: block;
  font-size: 14px;
  color: var(--muted);
}
.dewshot {
  margin-block: 48px 8px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--tint);
}
.dewshot h2 {
  margin-top: 4px;
}
.dewshot__eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 24px 40px;
  font-size: 15px;
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
@media print {
  .top,
  .foot,
  .dewshot,
  .tool,
  .related {
    display: none;
  }
}

/* the cropper */
.crop {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) {
  .crop {
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    align-items: start;
  }
}
.crop__stage {
  direction: ltr;
}
.stage {
  display: block;
  max-width: 100%;
  border-radius: 10px;
  touch-action: none;
  cursor: grab;
  background: var(--bg);
}
.stage:active {
  cursor: grabbing;
}
.crop__controls {
  display: grid;
  gap: 8px;
  align-content: start;
}
.label {
  font-weight: 600;
  font-size: 15px;
  margin-top: 6px;
}
.field {
  font: 16px/1.3 var(--font);
  color: var(--ink);
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  max-width: 100%;
}
.range {
  width: 100%;
  accent-color: var(--accent);
}
.round.is-square {
  border-radius: 12%;
}
.sizes {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-top: 12px;
}
.sizes th,
.sizes td {
  text-align: start;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.sizes th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
.source {
  font-size: 13px;
  color: var(--muted);
}
.sizes tbody th {
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  color: var(--ink);
}
.crop__controls .field {
  width: 100%;
}
