:root {
  --ink: #1c1917;
  --muted: #5c564e;
  --paper: #f7f2ea;
  --card: #fffdf8;
  --sea: #1e4d5a;
  --sea-dark: #0d1f24;
  --sand: #c4a574;
  --line: #e4d9c6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
}

a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }

.masthead-photo {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #000;
}

.masthead-home .masthead-photo {
  height: min(72vh, 640px);
}

.masthead-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.masthead-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4rem 1.5rem 2rem;
  background: linear-gradient(transparent, rgba(8, 16, 18, 0.92) 55%);
  color: #f7f2ea;
  text-align: center;
}

.masthead-overlay .logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  margin-bottom: 0.75rem;
}

.masthead-overlay .brand-name {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
}

.masthead-overlay h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  line-height: 1.2;
  font-weight: 600;
}

.masthead-overlay .tagline {
  margin: 0 auto;
  max-width: 36rem;
  font-style: italic;
  color: #d8c9b0;
  font-size: 1.1rem;
}

.masthead-bar {
  background: var(--sea-dark);
  color: #f7f2ea;
  padding: 0.85rem 1.5rem;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #f7f2ea;
  text-decoration: none;
  min-width: 0;
}

.brand:hover { text-decoration: none; }

.logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}

.brand-title {
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 600;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

nav a {
  color: #f7f2ea;
  font-family: system-ui, sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--sand);
  text-decoration: none;
}

.intro {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
}

.intro h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.intro p {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.1rem;
}

main, .wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.story-list {
  display: grid;
  gap: 1.25rem;
}

.story-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
}

.story-card .thumb {
  display: block;
  min-height: 140px;
  background: #d8c9b0;
}

.story-card .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card .card-body {
  padding: 1rem 1.15rem 1.15rem 0;
}

.story-card time {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.story-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

.story-card h3 a { color: var(--ink); }

.story-card .excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

article.post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem 1.5rem 2.5rem;
}

article.post header time {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

article.post h1 {
  margin: 0.4rem 0 1.25rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
}

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

.entry img { border-radius: 6px; }

.entry figure { margin: 1.25rem 0; }

.entry figcaption {
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.4rem;
}

.entry p { margin: 0 0 1rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.gallery figure { margin: 0; }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
}

.post-nav a { max-width: 42%; }

.post-nav .all-stories {
  max-width: none;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
}

.site-footer p { margin: 0.35rem 0; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid #d8c9b0;
  color: #f7f2ea;
  padding: 0.4rem 0.7rem;
  font-family: system-ui, sans-serif;
}

@media (max-width: 700px) {
  .header-inner { flex-wrap: wrap; }
  .menu-toggle { display: block; }
  nav {
    display: none;
    width: 100%;
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; padding: 0.5rem 0 0; }
  .story-card {
    grid-template-columns: 1fr;
  }
  .story-card .thumb {
    height: 180px;
  }
  .story-card .card-body {
    padding: 0 1.1rem 1.15rem;
  }
  .brand-title { font-size: 0.95rem; }
  .post-nav a { max-width: 100%; }
}
