/* Friday's Write — shared styles. No frameworks, no external dependencies. */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1c2430;
  --muted: #5d6b7a;
  --line: #e8e1d3;
  --accent: #b45309;
  --accent-dark: #92400e;
  --accent-soft: #fdf3e7;
  --hero-bg: #15202e;
  --hero-ink: #f7f3ea;
  --hero-muted: #b9c2cf;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 36, 48, 0.08);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.25;
  color: var(--ink);
  margin-top: 0;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; }

/* ---------- Layout ---------- */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section.block { padding: 4.5rem 0; }

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand span { color: var(--accent); }

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  margin-left: 1.5rem;
}

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

/* ---------- Hero ---------- */

.hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 83, 9, 0.35) 0%, rgba(180, 83, 9, 0) 70%);
}

.hero h1 {
  color: var(--hero-ink);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  max-width: 16ch;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: #f0b35c;
}

.hero p.lede {
  color: var(--hero-muted);
  font-size: 1.25rem;
  max-width: 34ch;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border: 2px solid rgba(247, 243, 234, 0.4);
  color: var(--hero-ink);
  margin-left: 0.75rem;
}

.btn--ghost:hover {
  border-color: var(--hero-ink);
  background: transparent;
  color: var(--hero-ink);
}

/* ---------- Section headings ---------- */

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
  max-width: 24ch;
}

.section-sub {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 56ch;
  margin-top: 0;
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(28, 36, 48, 0.12);
}

.card h3 {
  font-size: 1.25rem;
  margin: 0.75rem 0 0.5rem;
}

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

.card h3 a:hover { color: var(--accent); }

.card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.card .read-more {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #f3ddba;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  width: fit-content;
}

/* ---------- Services list ---------- */

.service-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.service-list strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  display: block;
  margin-bottom: 0.35rem;
}

.service-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- About ---------- */

.about {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about p { max-width: 62ch; }
.about strong { color: var(--ink); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--hero-bg);
  color: var(--hero-ink);
  text-align: center;
  border-radius: 20px;
  padding: 3.5rem 2rem;
  margin: 1rem 0;
}

.cta-band h2 {
  color: var(--hero-ink);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: var(--hero-muted);
  max-width: 46ch;
  margin: 0 auto 1.75rem;
}

.cta-band a.email {
  color: #f0b35c;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(240, 179, 92, 0.4);
}

.cta-band a.email:hover { border-bottom-color: #f0b35c; }

/* ---------- Article pages ---------- */

.article-hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: 3.5rem 0 3rem;
}

.article-hero .tag { margin-bottom: 1rem; }

.article-hero h1 {
  color: var(--hero-ink);
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  max-width: 22ch;
  margin-bottom: 1rem;
}

.sample-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hero-muted);
  border: 1px solid rgba(185, 194, 207, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  margin-top: 0.5rem;
}

.sample-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0b35c;
  flex-shrink: 0;
}

article.post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 4vw, 3rem);
  margin: -2rem auto 3rem;
  position: relative;
}

article.post h2 {
  font-size: 1.55rem;
  margin: 2.25rem 0 0.75rem;
  padding-top: 0.25rem;
}

article.post h2:first-child { margin-top: 0; }

article.post h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

article.post p { margin: 0 0 1.1rem; }

article.post ul, article.post ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

article.post li { margin-bottom: 0.45rem; }

article.post li::marker { color: var(--accent); }

.post-cta {
  background: var(--accent-soft);
  border: 1px solid #f3ddba;
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 2.5rem;
}

.post-cta p { margin: 0; font-size: 1.1rem; }
.post-cta strong { color: var(--ink); }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.post-nav a {
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  section.block { padding: 3rem 0; }
  .hero { padding: 4rem 0 3.5rem; }
  .btn--ghost { margin-left: 0; margin-top: 0.75rem; }
  .nav a { margin-left: 1rem; }
  article.post { margin-top: -1.5rem; }
}
