/* The look shared by Alxamía, Salli and Trevo, after Among the Stones: Noto
   Serif body, bold uppercase Noto Sans headings, italic uppercase small text,
   dotted rules, one mark per screen. Each tool sets its own --highlight and
   --on-highlight; everything else here is the same in all three. */
@font-face { font-family: "Noto Serif"; src: url("fonts/noto-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("fonts/noto-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("fonts/noto-serif-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("fonts/noto-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("fonts/noto-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #fff; --text: #222; --head: #111; --muted: #6b6b6b; --field: #fafafa;
  --rule: #111; --rule-row: #ddd; --rule-divider: #bbb;
  --sans: "Noto Sans", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1914; --text: #d4d4d4; --head: #e8e8e8; --muted: #aaa; --field: #24201a;
    --rule: #555; --rule-row: #3a3a3a; --rule-divider: #555;
    color-scheme: dark;
  }
}
@media (prefers-contrast: more) {
  :root { --muted: #3d3d3d; --rule-row: #777; --text: #000; }
  @media (prefers-color-scheme: dark) { :root { --muted: #d0d0d0; --rule-row: #999; --text: #fff; } }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 100%/1.6 "Noto Serif", Georgia, serif; }
@media (min-width: 37.5em) { body { font-size: 1.125em; } }

main { max-width: 40rem; margin: 0 auto; padding-block: max(1rem, env(safe-area-inset-top, 0px)) 3rem; outline: none;
       padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
/* Opened from the home screen, iOS blurs the strip under the status bar: start below it */
@media (display-mode: standalone) { main { padding-top: max(2.25rem, env(safe-area-inset-top, 0px)); } }

a { color: var(--head); text-underline-offset: .15em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--head); outline-offset: 2px; }

/* Header: the name on its mark, the tagline, the menu over a dotted rule */
header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; }
.site-title { font: 700 1.375em/1.2 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--head); margin: 0; }
.site-title a { color: inherit; text-decoration: none; }
mark { background: var(--highlight); color: var(--on-highlight); padding: .05em .05em; border-radius: 5px;
       -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.intro { font-style: italic; font-size: .875em; line-height: 1.45; margin: .3rem 0 .1rem; }
nav.modes { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .35rem 0 .9rem; border-bottom: 1px dotted var(--rule); padding-bottom: .2rem; }
nav.modes a { color: var(--muted); text-decoration: none; padding: .6em 0; margin: -.45em 0; display: inline-flex; align-items: center;
              font: 700 .75em var(--sans); text-transform: uppercase; letter-spacing: 1px; }
nav.modes a[aria-current="page"] { color: var(--head); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
nav.modes a:hover { color: var(--head); }

/* Type */
.small { font: italic 400 .8125em/1.4 var(--sans); text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; text-transform: uppercase; color: var(--head); }
.page-title { font-size: 1.5em; line-height: 1.35; letter-spacing: 1px; margin: .5rem 0 .4rem; }
.section { font-size: .875em; letter-spacing: 1px; margin: 1.6rem 0 .5rem; padding-top: .45rem; border-top: 1px dotted var(--rule); }
.section.first { margin-top: .4rem; padding-top: 0; border-top: 0; }
.sub { font-size: .75em; letter-spacing: 1px; margin: 1.1rem 0 .3rem; }
.help { font-size: .875em; color: var(--muted); margin: .4rem 0; }

/* Button groups (settings) and plain buttons */
.seg { display: inline-flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: .2rem 0; }
.seg button { border: 0; background: none; padding: .4em 0; min-height: 44px; cursor: pointer; color: var(--muted);
              font: 700 .8125em var(--sans); text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid transparent; }
.seg button[aria-pressed="true"] { color: var(--head); border-bottom-color: var(--head); }
.seg button:hover { color: var(--head); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .4rem 1rem;
          font: 700 .8125em var(--sans); text-transform: uppercase; letter-spacing: 1px; color: var(--head);
          background: var(--bg); border: 1px solid var(--head); border-radius: 5px; text-decoration: none; cursor: pointer; }

/* Footer: the sibling tools and the way back to Among the Stones, centered
   like the footer there. */
.foot { margin-top: 3rem; padding-top: 1rem; border-top: 1px dotted var(--rule-divider); text-align: center; }
.foot p { margin: .2rem 0; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--head); }
.foot [aria-current] { color: var(--head); }
