/* ============================================================
   Daniel Wainright — UX Portfolio — Shared Styles
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIABLES ── */
:root {
  --bg:      #FAF7F2;
  --text:    #1C2B2E;
  --muted:   #5F6F73;
  --earth:   #A6937C;
  --teal:    #246B73;
  --rust:    #BF6D4E;
  --card-bg: #F2EDE6;
  --dark:    #1C2B2E;
  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'Inter', system-ui, sans-serif;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
header.scrolled { border-color: color-mix(in srgb, var(--earth) 25%, transparent); }
.wordmark {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
nav { display: flex; gap: 40px; align-items: center; }
nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--teal);
  transition: width 0.25s;
}
nav a:hover { color: var(--text); }
nav a:hover::after { width: 100%; }
nav a.active { color: var(--text); }
nav a.active::after { width: 100%; background: var(--earth); }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 64px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rust);
  color: #FAF7F2;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  text-decoration: none;
  transition: background 0.2s, gap 0.2s;
}
.btn-primary:hover { background: #a85940; gap: 14px; }
.btn-primary svg { flex-shrink: 0; }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── SHARED CASE STUDY ELEMENTS ── */
.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 56px;
  transition: color 0.2s, gap 0.2s;
}
.case-back:hover { color: var(--teal); gap: 12px; }
.case-back svg { transform: rotate(180deg); }

.case-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 20px;
}

.section-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--earth);
}
.section-number {
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  color: color-mix(in srgb, var(--earth) 55%, transparent);
  margin-top: 8px;
}
.section-headline {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
}
.section-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
  text-wrap: pretty;
}
.section-body strong { font-weight: 500; color: var(--text); }

.case-list { list-style: none; }
.case-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--earth) 16%, transparent);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
}
.case-list li:first-child { border-top: 1px solid color-mix(in srgb, var(--earth) 16%, transparent); }
.case-list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--earth);
  flex-shrink: 0;
  margin-top: 9px;
}
.case-list li strong { font-weight: 500; color: var(--text); }

.artifact-caption {
  font-size: 11px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

/* ── CASE FOOTER ── */
.case-footer { background: var(--card-bg); padding: 64px 0; }
.case-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.case-footer-text {
  font-family: var(--serif);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  max-width: 400px;
  line-height: 1.45;
}
.footer-meta {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--earth) 25%, transparent);
  font-size: 12px;
  color: var(--earth);
  letter-spacing: 0.06em;
}
.footer-meta a { color: var(--earth); text-decoration: none; transition: color 0.2s; }
.footer-meta a:hover { color: var(--teal); }

/* ── RESPONSIVE (shared) ── */
@media (max-width: 900px) {
  header { padding: 20px 32px; }
  .container { padding: 0 32px !important; }
}
@media (max-width: 768px) {
  header { padding: 16px 24px; flex-wrap: wrap; gap: 16px; }
  nav { gap: 20px; flex-wrap: wrap; }
  nav a { font-size: 12px; }
  .container { padding: 0 24px !important; }
  .case-footer-inner { flex-direction: column; gap: 24px; align-items: flex-start; }
}
