/* Briefview website. One stylesheet, no scripts, system fonts only. */

:root {
  color-scheme: light dark;
  --bg: #f4f2ee;
  --card: #ffffff;
  --ink: #16181d;
  --soft: #4a4f59;
  --line: #ddd7cb;
  --accent: #7a5a1f;
  --link: #1f4e8c;
  --mark: #f6e3a8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --card: #181b21;
    --ink: #ece8e1;
    --soft: #b3b0a8;
    --line: #2f333c;
    --accent: #d9b56a;
    --link: #9cc0f0;
    --mark: #5a4a1c;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 4vw, 1.9rem); margin-top: 2em; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.92em; }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.text { width: min(100% - 2.5rem, 42rem); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: 0.6em 1em; }
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 2; }

/* Top bar */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font: 600 1.3rem var(--serif); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 0.3rem; }
.top nav a { color: var(--ink); text-decoration: none; padding: 0.55rem 0.7rem; border-radius: 8px; }
.top nav a:hover { background: var(--card); }
.top nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Home: opening */
.hero { padding-block: clamp(2rem, 6vw, 4rem) 1rem; text-align: center; }
.hero p.lead { font-size: 1.2rem; color: var(--soft); max-width: 38rem; margin-inline: auto; }
.hero figure { margin: 2rem auto 0; max-width: 60rem; }

.stores { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin: 1.6rem 0 0.6rem; padding: 0; list-style: none; }
.stores li { margin: 0; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 0.6rem 1.1rem; min-width: 13rem; text-align: left; }
.stores b { display: block; font-size: 1.05rem; }
.stores span { color: var(--soft); font-size: 0.9rem; }
.stores em { font-style: normal; display: inline-block; margin-top: 0.3rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--accent); }
.small { color: var(--soft); font-size: 0.92rem; }

/* Pictures */
figure { margin: 0; }
.shot { border-radius: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.14); }
@media (prefers-color-scheme: dark) { .shot { box-shadow: 0 0 0 1px var(--line); } }
figcaption { color: var(--soft); font-size: 0.88rem; margin-top: 0.6rem; text-align: center; }

/* Home: the five points */
.points { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding: 0; list-style: none; margin: 2.5rem 0; }
.points li { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.points h3 { margin: 0 0 0.3em; font-size: 1.15rem; }
.points p { margin: 0; color: var(--soft); }

.pair { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin: 2rem 0; }

/* Features: a picture beside its words */
.feature { display: grid; gap: 1.2rem 3rem; align-items: center; padding-block: 2.2rem; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature h2 { margin-top: 0; }
.feature.plain { max-width: 42rem; }
@media (min-width: 54rem) {
  .feature { grid-template-columns: 5fr 6fr; }
  .feature.plain { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) > div { order: 2; }
}

.band { background: var(--card); border-block: 1px solid var(--line); padding-block: 2rem; margin-top: 2.5rem; }
.band h2 { margin-top: 0; }

.more { display: inline-block; margin-top: 0.4rem; font-weight: 600; }

/* Text pages */
.page { padding-block: clamp(1.5rem, 5vw, 3rem) 2rem; }
.page h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.draft { border: 2px dashed var(--accent); border-radius: 10px; padding: 0.8rem 1rem; background: var(--card); font-weight: 600; }
.todo { background: var(--mark); padding: 0 0.25em; border-radius: 4px; }
.mail { font-size: 1.25rem; font-weight: 600; }

details { border-top: 1px solid var(--line); padding: 0.2rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 0.75rem 0; font-weight: 600; }
details > :last-child { margin-bottom: 1rem; }

/* Foot */
.foot { border-top: 1px solid var(--line); margin-top: 3rem; padding-block: 1.6rem 2.4rem; color: var(--soft); font-size: 0.93rem; }
.foot ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.4rem; margin: 0 0 0.8rem -0.5rem; }
.foot li { margin: 0; }
.foot a { color: var(--ink); display: inline-block; padding: 0.5rem; }
.foot p { margin: 0 0 0.3em; }
