﻿:root {
  --color-ink: #202124;
  --color-muted: #68707a;
  --color-line: #e4e1d8;
  --color-paper: #fffdf7;
  --color-panel: #ffffff;
  --color-sky: #dff1ff;
  --color-sun: #ffce6b;
  --color-leaf: #4aa87c;
  --color-coral: #ef7564;
  --shadow-soft: 0 16px 42px rgba(32, 33, 36, 0.08);
  --radius: 8px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--color-ink);
  background:
    linear-gradient(90deg, rgba(223, 241, 255, 0.42) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(228, 225, 216, 0.5) 0 1px, transparent 1px 100%),
    var(--color-paper);
  background-size: 28px 28px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

svg,
video,
iframe {
  max-width: 100%;
}

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

.site-header {
  background: rgba(255, 253, 247, 0.94);
  border-bottom: 1px solid var(--color-line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.site-header__inner,
.site-footer__inner,
.site-main,
.hero__inner {
  width: min(var(--content), calc(100% - 32px));
  margin-inline: auto;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}

.site-brand__name {
  color: var(--color-ink);
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}

.site-brand__logo {
  display: block;
  width: min(260px, 64vw);
  text-decoration: none;
}

.site-brand__logo img {
  width: 100%;
  height: auto;
}

.site-brand__tagline {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

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

.hero {
  border-bottom: 1px solid var(--color-line);
  background: #f7f2e8;
  overflow: hidden;
}

.hero__inner {
  min-height: 430px;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: 42px;
  padding: 48px 0 42px;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  margin: 0 0 12px;
  color: #2d7194;
  font-size: 0.86rem;
  font-weight: 900;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.35rem, 6.3vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 560px;
  margin: 18px 0 0;
  color: #3e4d55;
  font-size: clamp(1rem, 2.1vw, 1.24rem);
  font-weight: 650;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 28px;
}

.button-link,
.text-link {
  font-weight: 900;
  text-decoration: none;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--color-coral);
  color: #fff;
  box-shadow: 0 12px 28px rgba(239, 117, 100, 0.22);
}

.text-link {
  color: var(--color-muted);
}

.hero__visual {
  position: relative;
  margin: 0;
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(32, 33, 36, 0.14);
  overflow: hidden;
}

.hero__visual::before {
  content: "3 min";
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--color-sun);
  color: #3b2c08;
  font-weight: 950;
}

.hero__visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.site-main {
  padding: 42px 0 64px;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 34px;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.category-strip span {
  color: var(--color-muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.category-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(32, 33, 36, 0.06);
}

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

.section-heading h2,
.archive-title,
.entry-title {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.section-heading p,
.archive-description {
  max-width: 520px;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-panel);
  box-shadow: 0 8px 26px rgba(32, 33, 36, 0.05);
}

.post-card__image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--color-sky), #fff4ce);
  overflow: hidden;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.post-card__meta,
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-sun);
  color: #3b2c08;
  text-decoration: none;
}

.post-card h2,
.post-card h3 {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.35;
  letter-spacing: 0;
}

.post-card h2 a,
.post-card h3 a {
  text-decoration: none;
}

.post-card__excerpt {
  margin: 0;
  color: #4f5963;
  font-size: 0.94rem;
}

.read-more {
  margin-top: auto;
  color: var(--color-coral);
  font-weight: 900;
  text-decoration: none;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 740px) 280px;
  gap: 44px;
  align-items: start;
}

.entry {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.entry__header,
.entry__content,
.entry__footer {
  padding: clamp(22px, 5vw, 44px);
}

.entry__header {
  border-bottom: 1px solid var(--color-line);
}

.entry-title {
  margin-top: 14px;
}

.entry__thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.entry__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry__content {
  font-size: 1.06rem;
  overflow-wrap: break-word;
}

.entry__content a {
  word-break: break-word;
}

.entry__content figure {
  max-width: 100%;
}

.entry__content h2 {
  margin-top: 2.1em;
  padding-top: 0.7em;
  border-top: 3px solid var(--color-sun);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.3;
  letter-spacing: 0;
}

.entry__content p {
  margin: 1.1em 0;
}

.entry__content ul {
  padding-left: 1.25em;
}

.entry__content .article-image,
.entry__content .wp-block-embed,
.entry__content .article-video {
  margin: 1.6em 0;
}

.entry__content .article-image img {
  width: 100%;
  border-radius: var(--radius);
}

.entry__content figcaption {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.entry__content .wp-block-embed__wrapper,
.entry__content .article-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
}

.entry__content .wp-block-embed__wrapper iframe,
.entry__content .article-video__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.entry__content .article-reaction,
.entry__content .omoseka-comment {
  margin: 2em 0;
  padding: 18px 20px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fffdf7;
}

.entry__content .article-reaction h2,
.entry__content .omoseka-comment h2 {
  margin: 0 0 0.7em;
  padding: 0;
  border: 0;
  font-size: 1.18rem;
}

.entry__content .omoseka-comment {
  border-left: 5px solid var(--color-coral);
  background: #fff8df;
}

.entry__content .omoseka-comment p:last-child,
.entry__content .article-reaction p:last-child {
  margin-bottom: 0;
}

.entry__content .article-sources {
  margin-top: 2.4em;
  padding-top: 1em;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.84rem;
}

.entry__content .article-sources h2 {
  margin: 0 0 0.45em;
  padding: 0;
  border: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.entry__content .article-source-list {
  display: grid;
  gap: 4px;
  padding-left: 1.1em;
  margin: 0;
}

.entry__footer {
  border-top: 1px solid var(--color-line);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list a {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.sidebar {
  position: sticky;
  top: 96px;
}

.side-note {
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff8df;
}

.side-note h2 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.side-note p {
  margin: 0;
  color: #5d5140;
  font-size: 0.9rem;
  font-weight: 650;
}

.related-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #ffffff;
}

.related-box h2 {
  margin: 0 0 12px;
  font-size: 1.12rem;
}

.related-box ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.related-box li {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-line);
}

.related-box li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.related-box a {
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.45;
  text-decoration: none;
}

.related-box span {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 720px) 320px;
  gap: 32px;
  align-items: start;
}

.contact-entry .entry__content {
  font-size: 1rem;
}

.wpcf7-form {
  display: grid;
  gap: 18px;
}

.wpcf7-form label {
  display: grid;
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fffdf7;
  color: var(--color-ink);
  font: inherit;
}

.wpcf7-form textarea {
  min-height: 180px;
  resize: vertical;
}

.wpcf7-form input[type="submit"] {
  width: fit-content;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-coral);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.wpcf7-not-valid-tip,
.wpcf7-response-output {
  color: var(--color-coral);
  font-size: 0.9rem;
  font-weight: 750;
}

.pagination {
  margin-top: 30px;
  font-weight: 850;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination a,
.pagination span {
  min-width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 4px 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-panel);
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--color-line);
  background: #202124;
  color: #f7f2e6;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  color: rgba(247, 242, 230, 0.78);
  font-size: 0.86rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 880px) {
  .hero__inner,
  .article-shell,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .hero__visual img {
    height: 280px;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .site-footer__inner,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    position: relative;
    background: #f7f2e8;
  }

  .hero__inner {
    position: relative;
    min-height: min(72vh, 560px);
    display: block;
    padding: 42px 0 34px;
    overflow: hidden;
  }

  .hero__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(90deg, rgba(247, 242, 232, 0.98) 0%, rgba(247, 242, 232, 0.92) 42%, rgba(247, 242, 232, 0.28) 100%),
      linear-gradient(0deg, rgba(247, 242, 232, 0.98) 0%, rgba(247, 242, 232, 0) 36%);
    pointer-events: none;
  }

  .hero__content {
    max-width: 94%;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 12%;
  }

  .hero__eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.55rem, 7vw, 2.35rem);
    line-height: 1.07;
  }

  .hero__title-line {
    white-space: nowrap;
  }

  .hero__copy {
    max-width: 18em;
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero__actions {
    gap: 12px;
    margin-top: 24px;
  }

  .hero__visual {
    position: absolute;
    inset: 0 0 0 30%;
    z-index: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0.92;
  }

  .hero__visual::before {
    display: none;
  }

  .hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
  }
}

