/* Sildaja website. Sage is one parent's colour and clay the other's, as in the app. Light only (D36): the apps have the dark modes. */
@font-face { font-family: "Literata"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/literata-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/literata-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Literata"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/literata-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/literata-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Literata"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/literata-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/literata-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #F1F4EF; --paper2: #E5EBE3; --surface: #FBFCFA;
  --ink: #24302C; --muted: #56635E; --line: #D3DBD1;
  --a: #4F7D70; --a-soft: #D7E7E0; --a-ink: #1F443A;
  --b: #9A5F3C; --b-soft: #F1DFD1; --b-ink: #6B3D22;
  --serif: "Literata", Georgia, serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
a { color: var(--a-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--a); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 5; }
.skip:focus { left: 8px; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.4rem); line-height: 1.06; max-width: 15ch; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15; margin-bottom: 18px; }
h3 { font: 700 1rem/1.4 var(--sans); margin: 0 0 6px; }
p { margin: 0 0 14px; }
.measure { max-width: 62ch; }
.quiet { color: var(--muted); font-size: .95rem; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 1.45rem/1 var(--serif); color: var(--ink); text-decoration: none; }
.brand img { border-radius: 9px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the language dropdown: one control, code first (EE, EN, PT-BR) */
.langpick select { font: inherit; font-size: .95rem; color: var(--ink); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356635E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; min-height: 40px; padding: 6px 36px 6px 14px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.langpick select:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }

.hero { padding-top: clamp(20px, 4vw, 48px); padding-bottom: 40px; }
@media (min-width: 980px) {
  /* on a wide screen the strip stands beside the words, so the one idea is visible at once */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .hero .strip { margin-top: 0; }
  .hero .lede { margin-bottom: 22px; }
}
.lede { font-size: clamp(1.1rem, 1.8vw, 1.28rem); max-width: 56ch; margin: 22px 0 26px; color: var(--ink); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin: 0; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--a); color: #fff; text-decoration: none; font-weight: 700; }
.btn.alt { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--a); flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; padding-top: 8px; padding-bottom: 8px; }
.btn.alt small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.btn.alt:hover { background: var(--a-soft); color: var(--ink); }
.btn:hover { background: var(--a-ink); color: #fff; }
.note { color: var(--muted); font-size: .95rem; }

/* the two-week strip: the memorable thing */
.strip { margin: clamp(32px, 5vw, 56px) 0 0; }
.week { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(5px, 1vw, 10px); margin-top: 38px; }
.day { display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(58px, 9vw, 92px); padding: 9px 10px; border-radius: 14px; font-variant-numeric: tabular-nums; }
.day b { font-weight: 400; font-size: .82rem; color: inherit; opacity: .75; }
.day i { font: 400 clamp(1.1rem, 2.4vw, 1.6rem)/1 var(--serif); font-style: normal; }
.day.a { background: var(--a-soft); color: var(--a-ink); }
.day.b { background: var(--b-soft); color: var(--b-ink); }
.bridge { position: absolute; left: calc(400% / 7); top: -27px; width: calc(100% / 7 * 1.15); height: 28px; transform: translateX(-50%); overflow: visible; pointer-events: none; }
.bridge path { fill: none; stroke: var(--ink); stroke-linecap: round; }
.bridge .arc { stroke-width: 2.4; stroke-dasharray: 110; stroke-dashoffset: 0; }
.bridge .pier { stroke-width: 1.6; opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .bridge .arc { animation: draw 1.1s cubic-bezier(.4, .1, .2, 1) .5s both; }
  .week + .week .bridge .arc { animation-delay: 1.1s; }
  .bridge .pier { animation: rise .5s ease 1.4s both; }
  .week + .week .bridge .pier { animation-delay: 2s; }
}
@keyframes draw { from { stroke-dashoffset: 110; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; } to { opacity: .55; } }
.strip figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 16px; color: var(--muted); font-size: .95rem; }
.legend { display: inline-flex; gap: 16px; margin: 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sw.a { background: var(--a-soft); box-shadow: inset 0 0 0 1.5px var(--a); }
.sw.b { background: var(--b-soft); box-shadow: inset 0 0 0 1.5px var(--b); }

/* sections */
section { padding-top: clamp(56px, 9vw, 104px); }
.keep, .pair { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.pair { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.pair.rev { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.pair .text { max-width: 54ch; }
dl { margin: 0; }
.item { padding: 16px 0; border-top: 1px solid var(--line); }
.item:last-child { border-bottom: 1px solid var(--line); }
dt { font-weight: 700; margin-bottom: 4px; }
dd { margin: 0; color: var(--muted); max-width: 58ch; }
.art { display: flex; justify-content: center; }
.shot { display: block; width: min(320px, 100%); border-radius: 30px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 30px 60px -36px rgba(36, 48, 44, .45); }

.letter { background: var(--paper2); margin-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(56px, 9vw, 104px); }
.letter h2 { font-style: italic; }

/* demos: the product drawn in HTML, in the app's own styles */
.demo { width: min(360px, 100%); }
.tone-demo .bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-size: .98rem; white-space: pre-wrap; }
.tonebox { margin-top: 12px; border: 1px solid #C99A3B; background: #FFF4D6; color: #3F2E08; border-radius: 14px; padding: 12px 14px; font-size: .95rem; }
.tonebox strong { display: block; margin-bottom: 4px; }
.tonebox ul { margin: 0 0 10px; padding-left: 18px; }
.tonebox li { margin: 2px 0; }
.tonebox .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid currentColor; font-weight: 700; font-size: .9rem; }
.pill.ghost { border-color: transparent; font-weight: 400; }
.paper { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 26px 26px 18px; box-shadow: 0 30px 60px -40px rgba(36, 48, 44, .5); font-family: var(--serif); }
.paper .from { color: var(--muted); font-style: italic; font-size: .95rem; margin-bottom: 18px; }
.paper h3 { font: 400 1.05rem/1.3 var(--serif); margin: 14px 0 4px; }
.paper p { margin: 0 0 8px; line-height: 1.55; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0 18px; max-width: 820px; }
.split > div { padding: 18px 20px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.split > div + div { box-shadow: inset 0 0 0 1.5px var(--a); }
.split p { margin: 0; color: var(--muted); }

.start ol { list-style: none; counter-reset: s; padding: 0; margin: 8px 0 28px; display: grid; gap: 18px; max-width: 64ch; }
.start li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; gap: 12px; align-items: baseline; }
.start li::before { content: counter(s); font: 400 2rem/1 var(--serif); color: var(--a); }

.qas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; max-width: 980px; }
.qa { padding: 18px 0; border-top: 1px solid var(--line); }
.qa h3 { margin-bottom: 6px; }
.qa p { color: var(--muted); max-width: 48ch; margin: 0; }

.foot { padding-top: 72px; padding-bottom: 48px; color: var(--muted); font-size: .95rem; }
.article { max-width: 72ch; padding-top: clamp(16px, 3vw, 40px); }
.article h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-bottom: 18px; }
.article h2 { font-size: 1.35rem; margin: 30px 0 8px; }
.article p { max-width: 68ch; }
.foot p { margin: 0 0 8px; }

@media (max-width: 760px) {
  .top { padding-top: 14px; padding-bottom: 14px; }
  .langpick select { font-size: .86rem; padding: 6px 32px 6px 12px; }
  .brand { font-size: 1.25rem; }
  .brand img { width: 28px; height: 28px; }
  .keep, .pair, .pair.rev { grid-template-columns: 1fr; }
  .pair .art { order: 2; }
  .shot { width: min(280px, 80%); }
  .split { grid-template-columns: 1fr; }
  .qas { grid-template-columns: 1fr; }
  .day { padding: 7px 6px; border-radius: 10px; }
  .day b { font-size: .72rem; }
  .bridge { top: -21px; height: 22px; width: calc(100% / 7 * 1.5); }
}
