/* ============================================
   Dahline Studio — Design Tokens
   ============================================ */
:root {
  /* Neutrals — warm tan / light wood */
  --bg: #F7F2E7;
  --surface: #FCFAF3;
  --wood: #B08D5F;
  --wood-dark: #866843;
  --ink: #332B22;
  --ink-soft: #5A5040;

  /* Jewel accents — bold, WCAG AA text-contrast checked */
  --emerald: #0A8163;
  --sapphire: #2E5CE8;
  --amethyst: #B23FB6;
  --ruby: #D4364D;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;

  --radius: 3px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 600; font-family: var(--font-body); }

p { margin: 0 0 var(--space-2); max-width: 62ch; color: var(--ink-soft); }

a { color: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-3); }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--surface);
  padding: 0.8em 1.2em;
  z-index: 100;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: var(--radius);
}
.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

/* ---------- Nav ---------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(51,43,34,0.12);
}

.site-nav .wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav ul {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a.nav-link {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}

.site-nav a.nav-link:hover,
.site-nav a.nav-link.active {
  color: var(--ink);
}

.site-nav a.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--current-accent, var(--wood));
}

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    padding: 6px 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
  }
  .site-nav ul {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(51,43,34,0.12);
    z-index: 20;
  }
  .site-nav ul.open { display: flex; }
  .site-nav ul li { border-top: 1px solid rgba(51,43,34,0.08); }
  .site-nav a.nav-link { display: block; padding: var(--space-2) var(--space-3); }
  .site-nav { position: relative; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(51,43,34,0.12);
  margin-top: var(--space-6);
  padding: var(--space-4) 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.site-footer p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.site-footer a { text-decoration: none; color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1.5px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--surface);
}
.btn-primary:hover { background: var(--ink-soft); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(51,43,34,0.06); }

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-6) 0 var(--space-5);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-4);
  align-items: end;
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: var(--space-4); }
}

.hero .eyebrow-text {
  font-size: 0.95rem;
  color: var(--wood-dark);
  margin-bottom: var(--space-2);
}

.hero h1 { margin-bottom: var(--space-3); }
.hero .lede { font-size: 1.15rem; }
.hero .hero-actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }

/* Hero signature element — five lines winding like a staff caught in wind */
.hero-lines {
  width: 100%;
  height: auto;
}
.hero-lines path {
  fill: none;
  stroke-linecap: round;
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-5) 0;
}

.section-heading {
  margin-bottom: var(--space-4);
  max-width: 60ch;
}

.section-heading p { margin-top: var(--space-2); }

/* ---------- Service / link cards ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

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

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

/* ---------- Video grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

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

.video-card {
  display: block;
  text-decoration: none;
}

.video-card img,
.video-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

.video-card .video-title {
  margin-top: var(--space-1);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.tile {
  background: var(--surface);
  border-left: 10px solid var(--tile-accent, var(--wood));
  padding: var(--space-3);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.tile h3 { color: var(--ink); }
.tile p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: var(--space-1); }
.tile ul { margin: 0 0 var(--space-1); padding-left: 1.1em; color: var(--ink-soft); font-size: 0.92rem; }
.tile ul li { margin-bottom: 4px; }
.tile .tile-link {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tile-accent, var(--wood-dark));
}

.tile--emerald { --tile-accent: var(--emerald); }
.tile--sapphire { --tile-accent: var(--sapphire); }
.tile--amethyst { --tile-accent: var(--amethyst); }
.tile--ruby { --tile-accent: var(--ruby); }

/* ---------- About page ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

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

.about-photo {
  margin: 0;
  background: var(--surface);
  padding: var(--space-1);
  border: 1px solid rgba(51,43,34,0.1);
  border-left: 10px solid var(--ruby);
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.facts-list {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.facts-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.fact-accent {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.fact-accent--emerald { background: var(--emerald); }
.fact-accent--sapphire { background: var(--sapphire); }
.fact-accent--amethyst { background: var(--amethyst); }
.fact-accent--ruby { background: var(--ruby); }

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: rgba(51,43,34,0.12);
  border: none;
  margin: 0;
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sapphire);
  outline-offset: 2px;
}
