/* ============================================================
   ARSIDIAN LLC — premium minimal theme
   Light / dark follows the OS setting via prefers-color-scheme
   ============================================================ */

:root {
  --bg: #f7f6f3;
  --bg-elevated: #ffffff;
  --bg-subtle: #efede8;
  --text: #16181d;
  --text-muted: #5c6066;
  --text-faint: #9aa0a8;
  --line: rgba(22, 24, 29, 0.1);
  --line-strong: rgba(22, 24, 29, 0.18);
  --accent: #8a6d3b;
  --accent-strong: #6f5527;
  --accent-soft: rgba(138, 109, 59, 0.1);
  --glow-1: rgba(138, 109, 59, 0.12);
  --glow-2: rgba(60, 80, 130, 0.08);
  --shadow: 0 1px 2px rgba(20, 22, 26, 0.04), 0 12px 40px -12px rgba(20, 22, 26, 0.12);
  --shadow-soft: 0 1px 2px rgba(20, 22, 26, 0.03), 0 8px 24px -10px rgba(20, 22, 26, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d10;
    --bg-elevated: #14161b;
    --bg-subtle: #101216;
    --text: #ececea;
    --text-muted: #a3a7ad;
    --text-faint: #6b7077;
    --line: rgba(236, 236, 234, 0.09);
    --line-strong: rgba(236, 236, 234, 0.16);
    --accent: #c9a86a;
    --accent-strong: #ddbf85;
    --accent-soft: rgba(201, 168, 106, 0.1);
    --glow-1: rgba(201, 168, 106, 0.08);
    --glow-2: rgba(90, 120, 190, 0.07);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 40px -12px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 24px -10px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- layout ---------- */

.container {
  width: min(1080px, 100% - 3rem);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--text); }

.site-nav a.nav-cta {
  color: var(--bg);
  background: var(--text);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  transition: opacity 0.2s ease;
}

.site-nav a.nav-cta:hover { opacity: 0.85; }

@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .brand-name { letter-spacing: 0.2em; font-size: 1.2rem; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 9.5rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(46% 60% at 28% 30%, var(--glow-1), transparent 70%),
    radial-gradient(40% 55% at 75% 20%, var(--glow-2), transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.hero-eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  max-width: 17ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 0 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
  font-family: inherit;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover { border-color: var(--text-faint); }

/* ---------- sections ---------- */

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 640px;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.section-head h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- focus cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}

.card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* ---------- about strip ---------- */

.about {
  background: var(--bg-subtle);
  border-block: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-grid p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.facts {
  display: grid;
  gap: 1rem;
}

.fact {
  border-left: 2px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.25rem;
}

.fact strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.fact span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-aside p { color: var(--text-muted); }

.contact-aside a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-aside a:hover { border-color: var(--accent); }

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

/* honeypot — visually removed, still in the DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* collapsed until the widget is summoned by the first keystroke */
.turnstile-slot {
  margin-bottom: 0;
  min-height: 0;
  transition: min-height 0.25s ease, margin-bottom 0.25s ease;
}

.turnstile-slot.is-visible {
  margin-bottom: 1.25rem;
  min-height: 65px;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.92rem;
  display: none;
}

.form-status.ok { display: block; color: #3a8f5d; }
.form-status.err { display: block; color: #c2554e; }

@media (prefers-color-scheme: dark) {
  .form-status.ok { color: #6fc794; }
  .form-status.err { color: #e98079; }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  background: var(--bg-subtle);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

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

/* ---------- legal pages ---------- */

.legal-page {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.legal-page h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5rem;
}

.legal-meta {
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: 0.01em;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.legal-page ul { padding-left: 1.25rem; }

.legal-page a {
  color: var(--accent);
  text-decoration: none;
}

.legal-page a:hover { text-decoration: underline; }

/* ---------- misc ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
