/* ── Workspace section — shared styles ──
   Matches the homepage design language (Outfit / DM Serif Display, warm cream
   palette, large-radius cards) but adds a dark theme, since these pages already
   detect prefers-color-scheme to choose a video. */

:root {
  --bg: #F4F1EC;
  --card: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6560;
  --text-muted: #9B9590;
  --accent: #b8460f;
  --border: rgba(26, 26, 26, 0.10);
  --field-bg: #FFFFFF;
  --shadow: 0 1px 2px rgba(26, 26, 26, 0.04);
  --radius: 28px;
  --radius-lg: 36px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --card: #1F1E1C;
    --text-primary: #F4F1EC;
    --text-secondary: #A8A29B;
    --text-muted: #78736D;
    --accent: #E8823C;
    --border: rgba(244, 241, 236, 0.14);
    --field-bg: #171615;
    --shadow: none;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

.site-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.wide-wrapper { max-width: 1040px; }

/* ── NAV ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 40px;
}

nav .logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: normal;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  text-decoration: none;
}

nav .logo .logo-italic {
  font-style: italic;
  color: var(--accent);
}

nav .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav .nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.3s;
}

nav .nav-links a:hover,
nav .nav-links a[aria-current="page"] { color: var(--text-primary); }

/* ── CARDS ── */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

h1.page-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  font-weight: 400;
  margin-bottom: 20px;
}

.lede {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  max-width: 54ch;
}

/* The surrounding text is weight 300, so the browser's default bold would sit
   too close to it. 600 is loaded and reads clearly against 300. */
.lede strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ── FORM ── */
.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  padding: 15px 18px;
  font-family: inherit;
  font-size: 16px; /* 16px minimum stops iOS Safari zooming on focus */
  color: var(--text-primary);
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.field input[aria-invalid="true"] { border-color: #d14343; }

.field .hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 7px;
  font-weight: 300;
}

.field .error {
  font-size: 13px;
  color: #d14343;
  margin-top: 7px;
  min-height: 1px;
}

/* Honeypot — hidden from people, visible to naive bots. Not display:none,
   because some bots skip those; off-screen with no tab stop works better. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #F4F1EC;
  background: var(--text-primary);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  /* .btn is used on anchors as well as buttons, and an anchor would otherwise
     render the label underlined. */
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

@media (prefers-color-scheme: dark) {
  .btn { color: #141312; background: var(--text-primary); }
}

.btn:hover:not(:disabled) { opacity: 0.86; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn .spinner {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn[data-busy="true"] .spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── STATUS MESSAGES ── */
.status {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.6;
  display: none;
}

.status[data-show="true"] { display: block; }

.status.ok {
  background: color-mix(in srgb, #2f7d52 12%, transparent);
  color: #2f7d52;
}

.status.bad {
  background: color-mix(in srgb, #d14343 12%, transparent);
  color: #d14343;
}

@media (prefers-color-scheme: dark) {
  .status.ok { color: #7fce9f; }
  .status.bad { color: #f08c8c; }
}

.status a { color: inherit; font-weight: 600; }

/* ── FOOTER ── */
.footer {
  text-align: center;
  padding: 40px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
}

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

/* ── ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; opacity: 1; }
  .btn .spinner { animation-duration: 2s; }
  html { scroll-behavior: auto; }
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .card { padding: 34px 26px; }
  nav {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
  }
  nav .nav-links { gap: 20px; }
  .site-wrapper { padding: 28px 16px 60px; }
}
