:root {
  --paper: #f7f7f4;
  --smoke: #0f0f0e;
  --ink: #0b0b0a;
  --soft-ink: #202020;
  --muted: #686868;
  --line: #0f0f0e;
  --white: #fbfbf8;
  --wash: #e6e6e1;
  --wine: #8d173a;
  --shadow: 0 34px 90px rgba(15, 15, 14, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans KR", system-ui, sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: hidden;
  background: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

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

code {
  border-bottom: 1px solid var(--ink);
  padding: 0 0.1rem;
  font-size: 0.92em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 76px;
  padding: 0 4.8vw;
  border-bottom: 1px solid var(--ink);
  background: rgba(247, 247, 244, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.25rem, 3.4vw, 3.65rem);
  font-style: italic;
  font-weight: 500;
  line-height: 0.84;
  letter-spacing: 0;
  color: #0c0c0b;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: rgba(15, 15, 14, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

main {
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(2.6rem, 7vw, 9rem);
  align-items: center;
  min-height: min(680px, calc(100svh - 76px));
  padding: clamp(4rem, 7vw, 7.8rem) 6.4vw clamp(3.2rem, 5vw, 5.8rem);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.hero-copy {
  align-self: center;
  max-width: 620px;
  padding-bottom: 0;
}

.eyebrow,
.section-head p {
  margin: 0 0 1rem;
  color: var(--wine);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.listing h1,
.submit-guide h1 {
  margin: 0;
  max-width: 760px;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(3.35rem, 5vw, 6.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-dek {
  max-width: 520px;
  margin: 1.4rem 0 0;
  color: var(--soft-ink);
  font-size: clamp(0.92rem, 1vw, 1.05rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
  margin-top: 1.45rem;
}

.hero-actions a,
.briefing a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(16, 16, 16, 0.72);
  padding: 0 0.75rem;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-actions a.primary {
  background: var(--ink);
  color: var(--white);
}

.briefing a {
  min-height: 44px;
  border-width: 0 0 1px;
  padding: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  min-height: 420px;
  overflow: hidden;
  background: transparent;
}

.cover-card {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 0.76;
  border: 1px solid var(--wine);
  margin: 0;
  background: var(--ink);
  box-shadow:
    0 34px 70px rgba(15, 15, 14, 0.24),
    0 0 0 18px #ffffff;
  color: var(--white);
  padding: clamp(1.4rem, 2vw, 2rem);
  transform: translateY(0.6rem);
  overflow: hidden;
}

.cover-card::before {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: 2;
  border: 1px solid rgba(251, 251, 248, 0.46);
  pointer-events: none;
}

.cover-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 15, 14, 0.08) 0%, rgba(15, 15, 14, 0.08) 40%, rgba(15, 15, 14, 0.72) 100%),
    linear-gradient(90deg, rgba(15, 15, 14, 0.32) 0%, rgba(15, 15, 14, 0) 58%);
  pointer-events: none;
}

.cover-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.08) brightness(0.92);
}

.cover-brand {
  position: absolute;
  z-index: 3;
  top: 2.1rem;
  left: 2rem;
  color: var(--white);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.cover-card strong {
  position: absolute;
  z-index: 3;
  left: 2rem;
  right: 2rem;
  top: 40%;
  font-family: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
  font-size: clamp(3.15rem, 4.2vw, 4.85rem);
  font-weight: 600;
  line-height: 0.84;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.42);
}

.cover-card strong span {
  display: block;
  white-space: nowrap;
}

.cover-meta {
  position: absolute;
  z-index: 3;
  left: 2rem;
  right: 2rem;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.cover-meta {
  bottom: 2rem;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail,
.editors-grid,
.listing,
.related,
.submit-guide,
.archive-index {
  padding: clamp(3.2rem, 7vw, 7.5rem) 4.8vw;
  border-bottom: 1px solid var(--ink);
}

.rail {
  background: var(--smoke);
  color: var(--white);
  border-bottom-color: var(--ink);
  overflow: hidden;
}

.rail .section-head p,
.rail .card-meta,
.rail .article-card em {
  color: rgba(251, 251, 248, 0.7);
}

.rail .article-card-copy {
  border-bottom-color: rgba(251, 251, 248, 0.5);
}

.rail .article-card img {
  background: var(--ink);
  filter: saturate(0.72) contrast(1.18) brightness(0.9);
}

.rail .article-card:hover img {
  filter: saturate(0.98) contrast(1.1) brightness(1);
}

.editors-grid {
  background: var(--paper);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(1.8rem, 4vw, 3.4rem);
}

.section-head h2 {
  margin: 0;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(2.3rem, 4.6vw, 5.4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}

.editorial-strip {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-auto-columns: minmax(260px, 28vw);
  grid-auto-flow: column;
  gap: clamp(1rem, 2vw, 1.6rem);
  overflow-x: auto;
  padding-bottom: 1.2rem;
  scroll-snap-type: x mandatory;
}

.article-card {
  display: grid;
  gap: 0;
  min-height: 100%;
  background: transparent;
  scroll-snap-align: start;
}

.article-card img {
  width: 100%;
  aspect-ratio: 4 / 5.1;
  object-fit: cover;
  background: var(--wash);
  filter: saturate(0.82) contrast(1.06);
  transition: filter 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.article-card:hover img {
  filter: saturate(1) contrast(1.08);
  opacity: 0.94;
}

.article-card-copy {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.42rem;
  min-height: 9.2rem;
  padding: 1rem 0 0;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1rem;
}

.card-meta {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-card strong {
  font-family: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
  font-size: clamp(1.45rem, 2.1vw, 2.25rem);
  font-weight: 500;
  line-height: 1.06;
}

.article-card em {
  color: var(--soft-ink);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.7;
}

.feature-grid,
.masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.feature-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid.compact .article-card {
  grid-column: auto;
  margin-top: 0;
}

.masonry .article-card {
  grid-column: auto;
}

.article-card.tall {
  grid-column: auto;
}

.article-card.tall img {
  aspect-ratio: 4 / 5.1;
}

.briefing {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(320px, 0.65fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  margin: clamp(3rem, 6vw, 6rem) 4.8vw;
  padding: clamp(2.2rem, 4vw, 4.2rem) 0 0;
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

.briefing h2 {
  margin: 0;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 4.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
}

.briefing p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--soft-ink);
  line-height: 1.9;
}

.community-page {
  min-height: calc(100svh - 76px);
}

.community-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 1.2rem 0 0.8rem;
  border-bottom: 1px solid var(--line);
}

.community-intro {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.75;
}

.community-layout-list-only {
  display: block;
}

.community-layout-list-only .community-posts {
  max-width: 880px;
}

.community-list-status {
  max-width: 880px;
  margin: 0 0 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.community-tabs a {
  padding: 0.65rem 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.community-tabs a.active {
  color: var(--ink);
  border-bottom: 2px solid var(--wine);
}

.community-account {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  align-items: center;
  min-height: 32px;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.community-account button {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(1.2rem, 4vw, 3rem);
}

.community-form {
  display: grid;
  gap: 1rem;
  align-self: start;
}

.community-form label {
  display: grid;
  gap: 0.45rem;
}

.community-form span {
  color: var(--wine);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.community-form input,
.community-form textarea,
.community-form select {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.7;
  padding: 0.85rem 0.95rem;
}

.community-form select {
  min-height: 48px;
}

.community-auth {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.community-form .google-login {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
}

.community-check {
  grid-template-columns: 22px 1fr;
  align-items: center;
}

.community-check input {
  width: 18px;
  height: 18px;
}

.community-check span {
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.community-status {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.community-status[data-tone="error"] {
  color: #9f1d28;
}

.community-status[data-tone="success"] {
  color: #21643a;
}

.community-form textarea {
  resize: vertical;
}

.community-form button {
  min-height: 44px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.community-form .community-cancel-edit {
  background: transparent;
  color: var(--ink);
}

.community-form[data-editing] {
  border-top: 3px solid var(--wine);
  padding-top: 1rem;
}

.community-form p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.community-source-fields {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0;
}

.community-source-fields summary {
  cursor: pointer;
  font-weight: 700;
}

.community-source-fields[open] {
  display: grid;
  gap: 1rem;
}

.community-posts {
  display: grid;
  gap: 2rem;
  align-self: start;
}

.community-post {
  border-top: 1px solid var(--ink);
  padding-top: 1.1rem;
}

.community-post header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.community-post header span,
.community-post header em,
.community-post header time {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

.community-post header em {
  border: 1px solid var(--line);
  padding: 0.15rem 0.4rem;
}

.community-post header time {
  margin-left: auto;
}

.community-post h2 {
  margin: 0.5rem 0;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
}

.community-post-author {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.community-post-body {
  margin: 1rem 0;
  line-height: 1.85;
}

.community-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}

.community-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.community-gallery figure {
  position: relative;
  margin: 0;
}

.community-gallery figure button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border: 1px solid var(--white);
  background: rgba(18, 18, 18, 0.82);
  color: var(--white);
  font: inherit;
  font-size: 0.72rem;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}

.community-balance {
  margin: 0.8rem 0;
  border-left: 3px solid var(--line);
  padding-left: 0.9rem;
}

.community-balance.positive {
  border-color: #397454;
}

.community-balance.negative {
  border-color: #9f5d65;
}

.community-safety {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #9f5d65;
  background: #fff8f8;
}

.community-safety b,
.community-safety p {
  margin: 0;
}

.community-safety p {
  margin-top: 4px;
  color: #7b3030;
  font-size: 13px;
}

.community-balance b {
  font-size: 0.78rem;
}

.community-balance p {
  margin: 0.3rem 0 0;
  line-height: 1.7;
}

.community-source {
  display: inline-block;
  margin: 0.4rem 0 1rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.82rem;
}

.community-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.community-actions button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.community-comments {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.community-comment {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.community-comment p {
  margin: 0;
}

.community-comment time {
  color: var(--muted);
}

.community-comments form {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 90px;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.community-comments input,
.community-comments textarea,
.community-comments button {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 0.65rem;
}

.community-comments button {
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.community-empty {
  margin: 0;
  border-top: 1px solid var(--ink);
  padding-top: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.archive-list {
  display: grid;
  border-top: 1px solid var(--ink);
}

.archive-list a {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 120px;
  gap: 1rem;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid rgba(15, 15, 14, 0.3);
  padding: 0.9rem 0;
  transition: background 0.2s ease, padding 0.2s ease;
}

.archive-list a:hover {
  background: var(--ink);
  color: var(--white);
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}

.archive-list span,
.archive-list em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.archive-list strong {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  font-weight: 400;
  line-height: 1.35;
}

.archive-list strong b {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 400;
}

.archive-list strong i {
  width: 1px;
  height: 1em;
  flex: 0 0 1px;
  background: currentColor;
  opacity: 0.45;
  transform: translateY(0.12em);
}

.archive-list strong small {
  min-width: 0;
  color: var(--muted);
  font-family: "Noto Sans KR", Arial, sans-serif;
  font-size: 0.72em;
  font-weight: 400;
  line-height: 1.45;
}

.archive-list a:hover strong small {
  color: rgba(255, 255, 255, 0.72);
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(3rem, 6vw, 7rem) 4.8vw;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.article-hero h1 {
  margin: 0;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(3.4rem, 6.8vw, 8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.subtitle {
  margin: 1.4rem 0 0;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(1.55rem, 2.5vw, 2.6rem);
  line-height: 1.35;
}

.dek {
  max-width: 620px;
  margin: 1.4rem 0 0;
  color: var(--soft-ink);
  font-size: 1rem;
  line-height: 1.95;
}

.article-hero img {
  width: 100%;
  max-height: 780px;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.08);
  box-shadow: var(--shadow);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.tags span {
  border: 1px solid var(--line);
  padding: 0.42rem 0.58rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.article-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: clamp(1.5rem, 4vw, 4rem);
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem) 4.8vw;
}

.article-aside {
  position: sticky;
  top: 100px;
  display: grid;
  align-self: start;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.article-aside a {
  margin-top: 0.5rem;
  color: var(--ink);
  font-weight: 800;
}

.article-copy blockquote {
  margin: 0 0 3rem;
  padding: 0 0 1.8rem;
  border-bottom: 1px solid var(--ink);
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(1.9rem, 3.2vw, 3.6rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.article-figure {
  margin: 0 0 1.3rem;
}

.article-figure img {
  width: 100%;
  max-height: 860px;
  object-fit: cover;
  background: var(--wash);
  filter: saturate(0.9) contrast(1.06);
}

.article-figure figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.article-copy section + section {
  margin-top: 2.8rem;
}

.article-copy h2 {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-copy p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 1.02rem;
  line-height: 2.05;
}

.article-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-top: 1rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.article-resources {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink);
}

.article-resources > div {
  display: grid;
}

.article-resources a {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(15, 15, 14, 0.28);
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: 1.08rem;
}

.article-resources b {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1rem;
}

.empty-category {
  min-height: calc(100svh - 76px);
}

.empty-category > p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.9;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(1.2rem, 4vw, 3rem);
}

.guide-layout h2 {
  margin: 1.6rem 0 0.45rem;
  font-size: 1rem;
}

.guide-layout p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.85;
}

pre {
  overflow-x: auto;
  margin: 0;
  border: 1px solid var(--ink);
  background: #1d1c1a;
  color: var(--white);
  padding: 1.2rem;
  font-size: 0.82rem;
  line-height: 1.6;
}

pre code {
  border: 0;
  padding: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 4.8vw;
  color: var(--muted);
  font-size: 0.78rem;
}

.error {
  min-height: 70vh;
  padding: 5vw;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.5rem;
    padding-top: 0.9rem;
    padding-bottom: 0.7rem;
  }

  .nav {
    width: 100%;
  }

  .hero,
  .article-hero,
  .briefing,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-visual {
    min-height: 430px;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

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

  .feature-grid .article-card,
  .feature-grid .article-card:nth-child(n),
  .masonry .article-card,
  .article-card.tall {
    grid-column: auto;
    margin-top: 0;
  }

  .article-body {
    grid-template-columns: 1fr;
  }

  .community-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 86px;
    gap: 0.28rem;
    padding-top: 0.7rem;
    padding-bottom: 0.55rem;
  }

  .brand {
    font-size: clamp(1.8rem, 8.8vw, 2.35rem);
    line-height: 0.92;
  }

  .nav {
    gap: 0.82rem;
  }

  .nav a {
    min-height: 30px;
    font-size: 0.63rem;
  }

  .hero h1,
  .listing h1,
  .submit-guide h1,
  .article-hero h1 {
    font-size: clamp(2.35rem, 10.6vw, 3.6rem);
    line-height: 1.12;
  }

  .section-head h2 {
    font-size: clamp(1.9rem, 8.4vw, 3rem);
  }

  .editorial-strip {
    grid-auto-columns: minmax(230px, 78vw);
  }

  .feature-grid,
  .masonry,
  .feature-grid.compact {
    grid-template-columns: 1fr;
  }

  .community-comments form,
  .community-comment {
    grid-template-columns: 1fr;
  }

  .community-comment time {
    justify-self: start;
  }

  .hero-visual {
    min-height: 400px;
  }

  .hero {
    padding: 2.6rem 5vw 3rem;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-dek {
    margin-top: 1.1rem;
    line-height: 1.8;
  }

  .cover-card {
    width: min(82vw, 310px);
    padding: 1.25rem;
    box-shadow:
      0 24px 52px rgba(16, 16, 16, 0.16),
      0 0 0 10px rgba(255, 253, 247, 0.36);
  }

  .cover-card::before {
    inset: 0.78rem;
  }

  .cover-brand {
    top: 1.6rem;
    left: 1.45rem;
    font-size: 0.5rem;
  }

  .cover-card strong {
    top: 40%;
    left: 1.45rem;
    right: 1.45rem;
    font-size: clamp(2.28rem, 10vw, 3.05rem);
    line-height: 0.9;
  }

  .cover-meta {
    bottom: 1.45rem;
    left: 1.45rem;
    right: 1.45rem;
    font-size: 0.5rem;
    line-height: 1.4;
  }

  .archive-list a {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .archive-list strong {
    flex-wrap: wrap;
    gap: 0.3rem 0.6rem;
  }

  .archive-list strong small {
    flex: 1 1 65%;
  }

  .site-footer {
    display: block;
  }
}
