:root {
  --paper: #0E0D0B;
  --card: #1A1815;
  --ink: #F1EBE0;
  --muted: rgba(241, 235, 224, 0.62);
  --hairline: rgba(241, 235, 224, 0.12);
  --lamp: #F5D9A0;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(ellipse 70% 420px at 50% 0, rgba(245, 217, 160, 0.06), rgba(245, 217, 160, 0.02) 55%, rgba(245, 217, 160, 0) 100%);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--lamp); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

header.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 8px;
  font-size: 15px;
}
header.top .brand { font-family: var(--serif); font-size: 20px; color: var(--ink); }
header.top .brand:hover { text-decoration: none; }
header.top nav a { color: var(--muted); margin-left: 16px; }
header.top nav a:hover { color: var(--ink); }

.hero {
  margin: 8px -24px 0;
  aspect-ratio: 3 / 2;
  background: url("/hero.jpg") center 45% / cover no-repeat;
  -webkit-mask-image: radial-gradient(closest-side at 50% 48%, #000 55%, transparent 100%);
          mask-image: radial-gradient(closest-side at 50% 48%, #000 55%, transparent 100%);
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 7vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.home h1 { text-align: center; margin-top: -24px; }
.lede {
  color: var(--muted);
  font-size: 19px;
  text-align: center;
  max-width: 30em;
  margin: 0 auto 40px;
}

h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 40px 0 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px;
}

.contact p { margin: 0 0 16px; color: var(--muted); }
.email-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.email {
  font-size: 20px;
  color: var(--ink);
  user-select: all;
  -webkit-user-select: all;
  word-break: break-all;
}
.buttons { display: flex; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font: 600 16px var(--sans);
  cursor: pointer;
  border: 1px solid rgba(241, 235, 224, 0.25);
  background: transparent;
  color: var(--ink);
}
.btn:hover { text-decoration: none; border-color: rgba(241, 235, 224, 0.45); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { opacity: 0.88; }

.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq details:first-of-type { border-top: 1px solid var(--hairline); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 32px 16px 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { color: var(--muted); padding: 0 0 16px; }
.faq .answer p { margin: 0 0 8px; }
.faq .answer strong { color: var(--ink); font-weight: 600; }
.faq ol, .faq ul { margin: 0 0 8px; padding-left: 20px; }

.doc { padding-bottom: 16px; }
.doc h1 { margin-top: 40px; }
.doc .date { color: var(--muted); margin: 0 0 40px; }
.doc h2 { margin-top: 40px; }
.doc p, .doc li { color: rgba(241, 235, 224, 0.82); }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc a { word-break: break-word; }

footer {
  margin-top: 40px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
footer .copy { margin-left: auto; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .lede { font-size: 17px; }
  .home h1 { margin-top: -8px; }
  footer .copy { margin-left: 0; width: 100%; }
}
