/* Myers Media — neutral editorial theme */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --ink: #22211f;
  --muted: #6b6862;
  --line: #e5e2dc;
  --accent: #2f6b5f;
  --accent-ink: #275a50;
  --maxw: 50rem;
  --serif: "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a18;
    --surface: #242320;
    --ink: #ece9e4;
    --muted: #a39f97;
    --line: #38362f;
    --accent: #7fbcae;
    --accent-ink: #93cabd;
  }
}

* { box-sizing: border-box; }

html {
  font-size: 18px;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

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

.header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.site-nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-ink);
}

/* Main content */

main.wrap {
  padding: 1.5rem 1.25rem 4rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.25;
  letter-spacing: 0.005em;
}

h1 {
  font-size: 2.3rem;
  margin: 0 0 0.6rem;
}

h2 {
  font-size: 1.45rem;
  margin: 2.4rem 0 0.5rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.3rem;
}

p { margin: 0.7rem 0; }

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 38rem;
}

.kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
  margin: 0 0 0.4rem;
  font-weight: 600;
}

/* Hero */

.hero {
  padding: 1.5rem 0 1rem;
}

.hero h1 {
  font-size: 2.7rem;
  max-width: 34rem;
}

/* Property cards */

.cards {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
}

.cards li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.1rem 1.2rem 1.2rem;
}

.cards h3 {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
}

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

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

.cards p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Work page sections */

.property {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  margin-top: 2rem;
}

.property:first-of-type {
  border-top: none;
  margin-top: 1rem;
  padding-top: 0;
}

.property h2 { margin-top: 0; }

.property .links {
  font-size: 0.95rem;
}

.booklist {
  padding-left: 1.2rem;
}

.booklist li { margin: 0.45rem 0; }

/* Footer */

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

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

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

@media (max-width: 480px) {
  .hero h1 { font-size: 2.1rem; }
  h1 { font-size: 1.9rem; }
}
