/* ============================================================
   Dialed-In Drafting — Shared Stylesheet
   To change colors, fonts, or spacing site-wide, edit here.
   ============================================================ */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Karla:wght@300;400;500&display=swap');

/* --- COLOR TOKENS (light mode) --- */
:root {
  --ink:        #1a1a18;
  --charcoal:   #3d3d3a;
  --warm-mid:   #5a5a52;
  --warm-light: #9a9a90;
  --paper:      #f7f6f2;
  --white:      #ffffff;
  --rule:       #e0dfd8;
  --accent:     #7a5c32;
}

/* --- COLOR TOKENS (dark mode) --- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #edecea;
    --charcoal:   #c8c7c2;
    --warm-mid:   #a8a79f;
    --warm-light: #6b6b62;
    --paper:      #1e1d1a;
    --white:      #141412;
    --rule:       #2e2d29;
    --accent:     #c49a60;
  }
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* --- BASE --- */
body {
  font-family: 'Karla', sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  padding: 0 6%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--warm-mid);
  transition: color 0.2s;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-text {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

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

.btn-filled {
  background: var(--ink);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 2px;
}

.btn-filled:hover { opacity: 0.8; }

/* ============================================================
   SHARED SECTION LAYOUT
   ============================================================ */
.section {
  padding: 80px 6%;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 20px;
}

.section-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--warm-light);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.divider {
  height: 1px;
  background: var(--rule);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 6%;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--rule);
  padding: 28px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer p {
  font-size: 0.78rem;
  color: var(--warm-mid);
  letter-spacing: 0.03em;
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  nav ul {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }

  nav ul.open { display: flex; }

  nav ul li a {
    display: block;
    padding: 12px 6%;
  }
}
