/* Wild Nature Travels: tijdelijke website. System fonts only, no external requests. */

:root {
  color-scheme: light dark;

  --bg: #f1ede3;
  --ink: #17271e;
  --muted: #4a5a4f;
  --accent: #1e4a33;
  --accent-hover: #163826;
  --on-accent: #f7f3ea;
  --link: #1d5536;
  --line: #cfc8b6;
  --panel: #f8f5ee;
  --focus: #1e4a33;
  --ridge-far: #e4dfd0;
  --ridge-near: #d3d6c2;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", P052, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;

  --gutter: clamp(1.25rem, 7vw, 7.5rem);
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13221b;
    --ink: #ece6d7;
    --muted: #b3bcad;
    --accent: #b8cfa7;
    --accent-hover: #ccdfbe;
    --on-accent: #10201a;
    --link: #bed5ae;
    --line: #30463a;
    --panel: #182b22;
    --focus: #ccdfbe;
    --ridge-far: #182b21;
    --ridge-near: #1d3428;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

@media (min-width: 48em) {
  body {
    font-size: 1.125rem;
  }
}

/* Page frame: header, message, horizon */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.site-header,
.content {
  padding-inline: var(--gutter);
}

.site-header {
  padding-block: 1.5rem 0;
}

@media (min-width: 48em) {
  .site-header {
    padding-block-start: 2.5rem;
  }
}

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3125rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: calc(40rem + 2 * var(--gutter));
  padding-block: 3.5rem 3rem;
}

.content--doc {
  justify-content: flex-start;
  padding-block: 3rem 3.5rem;
}

@media (min-width: 48em) {
  .content--doc {
    padding-block-start: 5rem;
  }
}

.ridge {
  display: block;
  flex-shrink: 0;
  width: 100%;
  height: clamp(4.5rem, 13vw, 10.5rem);
}

.ridge-far {
  fill: var(--ridge-far);
}

.ridge-near {
  fill: var(--ridge-near);
}

/* Type */

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  max-width: 20ch;
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 1.55rem + 3.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}

p {
  max-width: var(--measure);
  margin: 0 0 1rem;
}

.lede {
  margin-bottom: 2rem;
}

.hint {
  margin-top: 0.875rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Keeps a name on one line where there is room for it */
@media (min-width: 36em) {
  .keep {
    white-space: nowrap;
  }
}

/* Standalone text links get a full-size tap target */
.link-row {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* Primary action */

.action {
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  max-width: 100%;
  padding: 0.75rem 1.375rem;
  border-radius: 0.625rem;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.button:hover {
  background: var(--accent-hover);
}

.button-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 23.99em) {
  .button {
    width: 100%;
    padding-inline: 0.75rem;
    font-size: 0.9375rem;
  }

  .button-icon {
    display: none;
  }
}

.secondary {
  margin-top: 1.25rem;
}

/* Focus */

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.button:focus-visible {
  outline-offset: 4px;
  border-radius: 0.625rem;
}

/* Mail page sections and settings */

.section {
  margin-top: 3.5rem;
}

.steps {
  max-width: var(--measure);
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.steps li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.steps li::marker {
  color: var(--muted);
}

.settings {
  max-width: var(--measure);
  margin-top: 1.5rem;
  padding: 0.25rem 1.25rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--panel);
}

.settings-list {
  margin: 0;
}

.setting {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 1rem;
  padding-block: 0.625rem;
  border-top: 1px solid var(--line);
}

.settings-list:first-child .setting:first-child {
  border-top: 0;
}

.setting dt {
  flex: 0 0 9rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.setting dd {
  flex: 999 1 12rem;
  margin: 0;
}

.value {
  font-family: var(--mono);
  font-size: 0.95em;
  -webkit-user-select: all;
  user-select: all;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
