/* Duyan Labs. The palette and the typefaces are Wascripts' own (web/site/assets/style.css),
   so the studio and its first product read as one family. The fonts are self-hosted copies of
   the Wascripts files, licensed under the SIL Open Font License 1.1; see fonts/OFL-*.txt. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/archivo-normal-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/archivo-normal-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/newsreader-normal-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/newsreader-normal-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/newsreader-italic-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/newsreader-italic-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper:     #faf8f4;
  --ink:       #17150f;
  --ink-2:     #4d483d;
  --rule:      #e3ddd2;
  --rule-firm: #cdc5b6;
  --accent:    #d1481d;
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:    "Archivo", "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #131109;
    --ink:       #f6f2e8;
    --ink-2:     #b6ae9e;
    --rule:      #2c281e;
    --rule-firm: #423c2e;
    --accent:    #ff6a3c;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

::selection { background: var(--accent); color: var(--paper); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }

a { color: inherit; text-decoration-color: var(--rule-firm); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

.shell { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .shell { padding: 0 32px; } }

.bar { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.wordmark { font-family: var(--display); font-size: 25px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark span, h1 span { color: var(--accent); }
.lang { font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.lang:hover { color: var(--ink); }

main { padding: clamp(40px, 9vw, 96px) 0 clamp(48px, 8vw, 88px); }

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 11vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
}

.lead { font-family: var(--display); font-size: clamp(21px, 3.4vw, 26px); line-height: 1.4; margin: 0 0 18px; }
.name { color: var(--ink-2); margin: 0; }
.name em { font-family: var(--display); font-size: 1.1em; color: var(--ink); }

section { margin-top: clamp(56px, 9vw, 88px); }

h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

h3 { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: -0.02em; margin: 0 0 8px; }
.product p { margin: 0; max-width: 60ch; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  font-size: 15.5px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
/* Hover lightens to ink-2 rather than Wascripts' vermilion: white on vermilion is about 4:1
   in light mode and less in dark, below the 4.5:1 that text this size needs. */
.btn-primary:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--rule-firm); }
.btn-ghost:hover { border-color: var(--ink); }

.contact p { margin: 0 0 6px; }

footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 14px; color: var(--ink-2); }
footer p { margin: 0 0 6px; max-width: 62ch; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
