/* avenest.app: the field-journal look (Brand A, D38). Fonts are served from
   this site (OFL, fonts/OFL-*.txt); nothing loads from anywhere else. */

@font-face { font-family: "Spectral"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/Spectral-Medium.ttf") format("truetype"); }
@font-face { font-family: "Spectral"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/Spectral-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Spectral"; font-weight: 500; font-style: italic; font-display: swap; src: url("/fonts/Spectral-MediumItalic.ttf") format("truetype"); }
@font-face { font-family: "Karla"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Karla-Regular.ttf") format("truetype"); }
@font-face { font-family: "Karla"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/Karla-Bold.ttf") format("truetype"); }

:root {
  --paper: #EDE8DC;
  --card-paper: #F4EFE3;
  --ink: #22301F;
  --border: #C9BFA8;
  --muted: #5F6656;
  --lichen: #8A9A5B;
  --kingfisher: #1F6F8B;
  --divider: #DDD5C2;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Karla", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

/* The wordmark: the swallow left of "Avenest" in Spectral SemiBold, the bird
   about 1.45 x the text's cap height (D44, D88). */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}
.wordmark svg { width: 1.25em; height: 1.25em; flex: none; }

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
}
.lang:hover { background: var(--card-paper); }

h1, h2, h3 {
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 2rem 0 0.75rem;
}
h1 { font-size: 2.125rem; margin-top: 0; }
h2 { font-size: 1.375rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

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

.lede {
  font-family: "Spectral", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--muted);
}

.muted { color: var(--muted); }

.box {
  background: var(--card-paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 0 0 1.25rem;
}
.box > :last-child { margin-bottom: 0; }

.email {
  font-weight: 700;
  font-size: 1.1875rem;
  overflow-wrap: anywhere;
}

.foot {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-bottom: 0.5rem; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot p { margin: 0; }
