:root {
  color-scheme: dark;
  --bg: #0c0b0a;
  --surface: #14110e;
  --surface-strong: #1b1712;
  --text: #f3ebdd;
  --text-soft: #d7ccba;
  --muted: #b3a792;
  --gold: #c9a86b;
  --gold-light: #e2ca92;
  --gold-dark: #967442;
  --border: rgba(225, 201, 150, 0.16);
  --border-strong: rgba(225, 201, 150, 0.3);
  --gold-wash: rgba(201, 168, 107, 0.09);
  --danger: #e3a18d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -18rem, rgba(201, 168, 107, 0.14), transparent 38rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 24rem),
    var(--bg);
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--bg);
  background: var(--gold-light);
}

a {
  color: var(--gold-light);
  text-decoration-color: rgba(226, 202, 146, 0.48);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #f2dfb5;
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--gold-light);
  border-radius: 8px;
  font-weight: 750;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--gold-light);
  background: var(--gold-wash);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 17px;
  font-style: italic;
  line-height: 1;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
}

.nav a[aria-current="page"] {
  color: var(--gold-light);
  background: var(--gold-wash);
  border-color: var(--border);
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 30px 0 18px;
  padding: clamp(30px, 7vw, 64px);
  background:
    linear-gradient(135deg, rgba(201, 168, 107, 0.1), transparent 48%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px 28px 3px 28px;
}

.hero::after {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-top: 1px solid var(--gold-dark);
  border-right: 1px solid var(--gold-dark);
  content: "";
  opacity: 0.65;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.lede {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.65;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.meta span + span::before {
  margin-right: 18px;
  color: var(--gold-dark);
  content: "·";
}

.notice {
  margin: 18px 0 26px;
  padding: 18px 20px 18px 22px;
  color: var(--text-soft);
  background: var(--gold-wash);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
}

.notice strong {
  color: var(--gold-light);
}

.document {
  max-width: 820px;
  margin: 0 auto;
  padding: 4px clamp(2px, 3vw, 24px);
}

.document > section {
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.document > section:last-child {
  border-bottom: 0;
}

h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(25px, 4.2vw, 33px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h3 {
  margin: 25px 0 8px;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.045em;
  line-height: 1.4;
  text-transform: uppercase;
}

p {
  margin: 12px 0;
  color: var(--text-soft);
}

ul,
ol {
  margin: 13px 0;
  padding-left: 23px;
  color: var(--text-soft);
}

li {
  padding-left: 4px;
}

li + li {
  margin-top: 9px;
}

li::marker {
  color: var(--gold);
}

strong {
  color: var(--text);
  font-weight: 700;
}

code,
.plain-email {
  color: var(--gold-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.94em;
  word-break: break-word;
}

.plain-email {
  -webkit-user-select: all;
  user-select: all;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 8px;
}

.card {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.card-label {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.card-title {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.steps {
  margin: 20px 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 40px;
  padding: 2px 0 18px 50px;
}

.steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--gold-light);
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  content: counter(step);
  counter-increment: step;
  font-size: 12px;
  font-weight: 750;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 8px 0 12px;
  padding: 0 21px;
  color: #171108;
  background: var(--gold-light);
  border: 1px solid var(--gold-light);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(201, 168, 107, 0.12);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.button:hover {
  color: #0c0b0a;
  background: #efdaa9;
  border-color: #efdaa9;
}

.email-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin: 14px 0;
  padding: 15px 17px;
  background: var(--surface-strong);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
}

.email-box span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.fine {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.callout {
  margin-top: 20px;
  padding: 18px;
  background: rgba(227, 161, 141, 0.055);
  border: 1px solid rgba(227, 161, 141, 0.22);
  border-radius: 12px;
}

.callout p:first-child {
  margin-top: 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  color: var(--danger);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 16px;
  margin-top: 34px;
  padding: 24px 0 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 12px;
  text-align: center;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--gold-light);
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .page {
    width: min(100% - 24px, 940px);
    padding-top: 8px;
  }

  .topbar {
    display: block;
    padding-bottom: 14px;
  }

  .nav {
    justify-content: flex-start;
    margin-top: 12px;
    gap: 4px;
  }

  .nav a {
    min-height: 42px;
    padding: 0 10px;
  }

  .hero {
    margin-top: 18px;
    padding: 30px 22px 28px;
    border-radius: 2px 22px 2px 22px;
  }

  .hero::after {
    top: 17px;
    right: 17px;
    width: 36px;
    height: 36px;
  }

  h1 {
    max-width: calc(100% - 24px);
  }

  .meta {
    display: grid;
    gap: 5px;
  }

  .meta span + span::before {
    content: none;
  }

  .notice {
    padding-right: 16px;
  }

  .document {
    padding-inline: 4px;
  }

  .document > section {
    padding: 26px 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .email-box {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  html,
  body {
    color: #111;
    background: #fff;
  }

  .page {
    width: 100%;
  }

  .topbar,
  footer,
  .button,
  .skip-link {
    display: none;
  }

  .hero,
  .notice,
  .card {
    color: #111;
    background: #fff;
    border-color: #bbb;
  }

  h1,
  h2,
  h3,
  p,
  li,
  .lede,
  .meta,
  a,
  strong {
    color: #111 !important;
  }
}
