/* ── kwaku editorial: clothing brand ── */

:root {
  --bg: #f4efe6;
  --paper: #ffffff;
  --ink: #14110e;
  --muted: #7a7265;
  --rule: #d9cfbf;
  --accent: #d63b1f;
  --accent-hover: #b82e15;
  --font-display: "Fraunces", "Iowan Old Style", "Charter", Georgia, serif;
  --font-body: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --measure: 70ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1713;
    --paper: #221f1a;
    --ink: #e8dfd0;
    --muted: #8a8174;
    --rule: #3a342c;
    --accent: #e85a3a;
    --accent-hover: #f06a4a;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Reset ── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ── */

body {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ── Typography ── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1.1;
}

h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

h2 {
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1.2rem;
  font-weight: 400;
}

p { margin: 0 0 1em; max-width: var(--measure); }

.lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 55ch;
}

.meta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.muted { color: var(--muted); }

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 0.2s;
}

a:hover, a:focus-visible {
  text-decoration-color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Navigation ── */

nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark:hover {
  text-decoration: none;
  color: var(--accent);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

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

/* ── Hero ── */

.hero {
  margin-bottom: 4rem;
}

.hero .lede {
  margin-bottom: 1.5rem;
}

/* ── Button ── */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--accent);
  padding: 0.7rem 1.6rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover, .btn:focus-visible {
  background: var(--accent-hover);
  text-decoration: none;
  color: var(--paper);
}

/* ── Articles grid ── */

.articles {
  margin-bottom: 4rem;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.card {
  background: var(--paper);
  padding: 1.5rem;
  border: 1px solid var(--rule);
}

.card-body h3 {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.card-body h3 a {
  text-decoration: none;
  color: var(--ink);
}

.card-body h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.card-body p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* ── About ── */

.about {
  margin-bottom: 4rem;
}

/* ── Contact form ── */

.contact {
  margin-bottom: 4rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  color: var(--muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Footer ── */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.wordmark-sm {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
}

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

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

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

footer .attribution {
  font-size: 0.75rem;
  opacity: 0.7;
  margin: 0;
}

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