/*
Theme Name: Jack Davey
Author: OpenAI
Description: A minimal editorial WordPress theme for a writer/journalist.
Version: 1.0
Text Domain: jack-davey
*/

:root {
  --bg: #f6f4ef;
  --text: #171717;
  --muted: #6e6a63;
  --line: #d8d3ca;
  --accent: #8f2d22;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.site-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.site-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.site-title a { text-decoration: none; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.site-nav a { text-decoration: none; }

.hero {
  padding: clamp(64px, 10vw, 130px) 0 72px;
  max-width: 860px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 92px);
  line-height: .98;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.hero p {
  max-width: 720px;
  margin: 28px 0 0;
  color: #3f3c37;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.4;
}

.section {
  padding: 54px 0 72px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-heading span {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.story-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.story {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 26px;
  align-items: baseline;
  padding: 23px 0;
  border-top: 1px solid var(--line);
}

.story:last-child { border-bottom: 1px solid var(--line); }

.story-publication,
.story-date {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.story-title {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.15;
  font-weight: 500;
}

.story-title a { text-decoration: none; }

.story-excerpt {
  margin: 7px 0 0;
  max-width: 700px;
  color: #59554f;
  font-size: 16px;
  line-height: 1.5;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 8vw, 100px);
}

.about-grid h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 500;
}

.about-copy {
  max-width: 720px;
  font-size: 22px;
  line-height: 1.55;
}

.about-copy p:first-child { margin-top: 0; }

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 26px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.site-footer {
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

.entry {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 0 90px;
}

.entry h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.entry-meta {
  margin-bottom: 42px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.entry-content p,
.entry-content li {
  font-size: 20px;
  line-height: 1.7;
}

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

.posts-page {
  padding: 64px 0 90px;
}

.posts-page h1 {
  margin: 0 0 40px;
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-shell { width: min(calc(100% - 28px), var(--max)); }

  .header-inner {
    display: block;
  }

  .site-nav {
    margin-top: 18px;
  }

  .story {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .story-date { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero {
    padding-top: 74px;
  }
}
