/* =========================================================
   components.css — shared cards, buttons, section headers
   ========================================================= */

/* Section header (reused by front-page, archives) */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: var(--ow-sp-4);
  border-bottom: 1px solid var(--ow-rule);
  margin-bottom: var(--ow-sp-6);
}
.section-header h2 {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-header .link {
  font-size: 13px;
  color: var(--ow-ink-2);
  font-weight: 500;
}
.section-header .link:hover { color: var(--ow-ink); }
@media (max-width: 767px) {
  .section-header h2 { font-size: 22px; }
}

/* Shared card (archive + related strip) */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--ow-sp-3);
  text-decoration: none;
  color: inherit;
}
.card__img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #b0a088, #5a4e38);
  overflow: hidden;
  border-radius: 2px;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.card:hover .card__img img { transform: scale(1.03); }
.card__brow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--ow-sp-2);
  margin-top: var(--ow-sp-2);
}
.card__issue {
  font-family: var(--ow-mono);
  font-size: 11px;
  color: var(--ow-ink-2);
  letter-spacing: 0.04em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.card__city {
  font-size: 11px;
  color: var(--ow-ink-2);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.card__title {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ow-ink);
  word-break: keep-all;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Like button (single post body appends) */
.like-button-wrap {
  display: flex;
  justify-content: center;
  margin: var(--ow-sp-7) 0 var(--ow-sp-5);
}
.like-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--ow-rule);
  border-radius: 999px;
  background: var(--ow-bg);
  color: var(--ow-ink);
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
}
.like-button:hover {
  border-color: var(--ow-ink);
  transform: translateY(-1px);
}
.like-button__icon { font-size: 16px; }
.like-button.is-liked { background: var(--ow-ink); color: #fff; border-color: var(--ow-ink); }

/* Pagination */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--ow-sp-7);
  font-size: 14px;
}
.nav-links .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--ow-rule);
  border-radius: 2px;
  color: var(--ow-ink-2);
  text-decoration: none;
  transition: all .15s;
}
.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
  border-color: var(--ow-ink);
  color: var(--ow-ink);
}
.nav-links .page-numbers.current { background: var(--ow-ink); color: #fff; }

/* ===================================================================
   Static pages — about / contact / privacy
   Replaces inline <div style="max-width:720px;..."> that used to live
   in each page's post_content. Centralised here so layout/typography
   stay consistent with the rest of the theme.
   =================================================================== */
.static-page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--ow-sp-7) 20px var(--ow-sp-9);
}
.static-page__header {
  margin-bottom: var(--ow-sp-6);
  padding-bottom: var(--ow-sp-5);
  border-bottom: 1px solid var(--ow-rule);
}
.static-page__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--ow-ink);
  line-height: 1.3;
  font-family: var(--ow-sans);
}
.static-page__body h2 {
  font-size: 18px;
  font-weight: 700;
  margin: var(--ow-sp-6) 0 var(--ow-sp-4);
  color: var(--ow-ink);
  line-height: 1.4;
}
.static-page__body p {
  margin: 0 0 var(--ow-sp-4);
  line-height: 1.75;
  color: var(--ow-ink-2);
  font-size: 15px;
}
.static-page__body ul {
  padding-left: 20px;
  margin: 0 0 var(--ow-sp-4);
}
.static-page__body ul li {
  margin-bottom: 6px;
  line-height: 1.75;
  color: var(--ow-ink-2);
  font-size: 15px;
}
.static-page__body strong { color: var(--ow-ink); font-weight: 700; }
.static-page__body a {
  color: var(--ow-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.static-page__body a:hover { color: var(--ow-navy); }
.static-page__meta {
  margin-top: var(--ow-sp-7);
  padding-top: var(--ow-sp-4);
  border-top: 1px dotted var(--ow-rule);
  font-size: 13px;
  color: var(--ow-ink-3);
}
@media (max-width: 640px) {
  .static-page { padding: var(--ow-sp-6) 16px var(--ow-sp-7); }
  .static-page__title { font-size: 24px; }
}
