:root {
  --ink: #14100b;
  --paper: #f4ecdf;
  --gold: #e8c795;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

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

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("../img/hero-1400.jpg") center 42% / cover no-repeat;
  filter: sepia(.15);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(20, 16, 11, .97), rgba(20, 16, 11, .87) 55%, rgba(20, 16, 11, .72));
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: -5rem;
  inset-inline-start: 1rem;
  z-index: 3;
  padding: .65rem .9rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

.skip-link:focus { top: 1rem; }

.note-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem);
}

.brand {
  color: rgba(244, 236, 223, .76);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
}

.note-page {
  display: grid;
  min-height: 100svh;
  align-items: end;
  padding: 7rem clamp(1.25rem, 8vw, 8rem) clamp(2.4rem, 8vh, 5.5rem);
}

.note {
  width: min(42rem, 100%);
}

.note h1 {
  margin: 0 0 1.15rem;
  color: var(--gold);
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  font-weight: 400;
  letter-spacing: .015em;
}

.note-copy {
  margin: 0;
  color: rgba(244, 236, 223, .84);
  font-size: clamp(.98rem, 1.8vw, 1.14rem);
  line-height: 1.78;
}

.note-foot {
  display: flex;
  gap: .45rem;
  margin-top: 1.45rem;
  color: rgba(244, 236, 223, .43);
  font-family: var(--sans);
  font-size: .67rem;
  letter-spacing: .08em;
}

.note-foot a { text-underline-offset: .25em; }

[dir="rtl"] .note { margin-inline-end: 0; }

@media (min-width: 780px) {
  [dir="ltr"] .note { margin-inline-start: 8vw; }
  [dir="rtl"] .note { margin-inline-end: 8vw; }
}

@media (max-width: 520px) {
  .note-page { padding-bottom: 2.25rem; }
  .note-copy { line-height: 1.68; }
}
