/* N'Allium site. No web fonts, scripts or third-party requests: the pages
   load only files from this folder, as the privacy policy promises. Colors
   follow the app's reading surface (paper, ink, red, amber) in light mode
   and its dark camera screen in dark mode. */

:root {
  color-scheme: light dark;
  --paper: #fffdf7;
  --ink: #1a1a1a;
  --muted: #55524b;
  --rule: #e6e1d6;
  --panel: #f5f0e4;
  --link: #a81d2a;
  --red: #c52231;
  --amber: #ffc247;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161616;
    --ink: #f2efe8;
    --muted: #b9b4aa;
    --rule: #34322e;
    --panel: #222120;
    --link: #ffc247;
  }
}

*,
*::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: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--panel);
  color: var(--ink);
  z-index: 1;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header.site {
  border-bottom: 1px solid var(--rule);
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: inherit;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a[aria-current="page"] {
  border-bottom-color: var(--red);
}

main {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0.5rem 0 0.5rem;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.25rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

main li + li {
  margin-top: 0.35rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.summary,
.contact {
  background: var(--panel);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.summary h2,
.contact h2 {
  margin-top: 0;
}

.summary > :last-child,
.contact > :last-child {
  margin-bottom: 0;
}

.contact .address {
  font-size: 1.2rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.swatch {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  border-radius: 3px;
  vertical-align: -0.1em;
  margin-right: 0.35em;
}

.swatch.red {
  background: var(--red);
}

.swatch.amber {
  background: var(--amber);
}

details {
  border-bottom: 1px solid var(--rule);
  padding: 0.75rem 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
}

details[open] summary {
  margin-bottom: 0.5rem;
}

details > :last-child {
  margin-bottom: 0;
}

footer.site {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

footer.site .wrap {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

footer.site p {
  margin: 0 0 0.5rem;
}
