:root {
  --bg: #f8f3e8;
  --paper: rgba(255, 251, 243, 0.88);
  --paper-strong: rgba(255, 251, 243, 0.96);
  --ink: #2b231b;
  --muted: #6e6355;
  --line: rgba(74, 55, 34, 0.16);
  --accent: #d97742;
  --accent-strong: #e9ab6d;
  --accent-soft: #f2c59a;
  --leaf: #91b79d;
  --shadow: 0 24px 60px rgba(91, 61, 31, 0.16);
  --image-frame: linear-gradient(180deg, #fff4dd 0%, #f3d3ab 100%);
  --card-image-frame: linear-gradient(180deg, #fff4dd 0%, #f2d2b2 100%);
  --prompt-bg: rgba(255, 248, 236, 0.9);
  --body-bg:
    radial-gradient(circle at top left, rgba(255, 218, 164, 0.9), transparent 32%),
    radial-gradient(circle at right 10% top 20%, rgba(145, 183, 157, 0.55), transparent 28%),
    linear-gradient(180deg, #fbf7ef 0%, #f1e6d4 100%);
}

body[data-theme="dark"] {
  --bg: #12151a;
  --paper: rgba(28, 32, 39, 0.86);
  --paper-strong: rgba(33, 38, 46, 0.96);
  --ink: #f7efe3;
  --muted: #c4b7a6;
  --line: rgba(255, 239, 216, 0.15);
  --accent: #f2a65f;
  --accent-strong: #ffcf8f;
  --accent-soft: #5e4630;
  --leaf: #8fd1ae;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --image-frame: linear-gradient(180deg, #2b3340 0%, #4a3c30 100%);
  --card-image-frame: linear-gradient(180deg, #2b3340 0%, #3e342c 100%);
  --prompt-bg: rgba(18, 21, 26, 0.72);
  --body-bg:
    radial-gradient(circle at top left, rgba(242, 166, 95, 0.22), transparent 34%),
    radial-gradient(circle at right 10% top 20%, rgba(143, 209, 174, 0.18), transparent 30%),
    linear-gradient(180deg, #101419 0%, #1b1d24 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Gaegu", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--body-bg);
  transition: background 220ms ease, color 220ms ease;
}

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

button {
  font: inherit;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.site-mark {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(91, 61, 31, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 119, 66, 0.42);
}

.theme-toggle__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf4;
  font-size: 1rem;
  line-height: 1;
}

.theme-toggle__text {
  font-size: 1rem;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.spotlight,
.intro-strip,
.cat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy {
  border-radius: 36px;
  padding: 40px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.04;
}

h1 {
  font-size: clamp(3rem, 5vw, 5.4rem);
}

.hero-text {
  margin: 20px 0 0;
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--muted);
  max-width: 15em;
}

.hero-actions {
  margin-top: 34px;
}

.primary-btn {
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fffaf4;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(217, 119, 66, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-btn:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 16px 34px rgba(217, 119, 66, 0.35);
}

.hero-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  border-radius: 36px;
  padding: 24px;
}

.spotlight-image-frame {
  overflow: hidden;
  border-radius: 28px;
  background: var(--image-frame);
}

.spotlight-image {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.spotlight-copy {
  display: grid;
  gap: 10px;
}

.spotlight-label {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.spotlight-value {
  margin: 0;
  color: var(--accent);
  font-size: 1.7rem;
  font-weight: 700;
}

.spotlight-description {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.45;
}

.prompt-box {
  margin-top: 6px;
  padding: 16px;
  border-radius: 22px;
  background: var(--prompt-bg);
  border: 1px dashed var(--line);
}

.prompt-box span,
.card-prompt span {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.prompt-box p,
.card-prompt p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--muted);
  word-break: keep-all;
}

.intro-strip {
  margin-top: 28px;
  border-radius: 28px;
  padding: 18px 24px;
}

.intro-strip p {
  margin: 0;
  font-size: 1.35rem;
  color: var(--ink);
}

.gallery-section {
  margin-top: 36px;
}

.partner-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.comments-section {
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

#disqus_thread {
  margin-top: 18px;
}

.comments-section noscript {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
}

.comments-section a {
  color: var(--accent);
  font-weight: 700;
}

.partner-copy p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.45;
}

.partner-form {
  display: grid;
  gap: 14px;
}

.partner-form label {
  display: grid;
  gap: 6px;
}

.partner-form span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.partner-form input,
.partner-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: var(--paper-strong);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.partner-form textarea {
  resize: vertical;
  min-height: 132px;
}

.partner-form input:focus,
.partner-form textarea:focus {
  border-color: rgba(217, 119, 66, 0.58);
  box-shadow: 0 0 0 4px rgba(217, 119, 66, 0.14);
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.variable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.cat-card {
  border-radius: 30px;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.cat-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(217, 119, 66, 0.5);
  box-shadow: 0 28px 64px rgba(217, 119, 66, 0.18);
}

.card-image-wrap {
  padding: 14px 14px 0;
}

.card-image {
  border-radius: 24px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--card-image-frame);
}

.card-body {
  padding: 18px 20px 22px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.card-kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

.card-title {
  font-size: 2rem;
}

.card-value {
  margin: 12px 0 10px;
  font-size: 1.45rem;
  font-weight: 700;
}

.card-description {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.45;
}

.card-prompt {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding: 16px 0 48px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy,
  .spotlight,
  .intro-strip,
  .cat-card,
  .partner-section,
  .comments-section {
    border-radius: 24px;
  }

  .hero-copy {
    padding: 28px 22px;
  }

  .partner-section,
  .comments-section {
    padding: 22px;
  }

  .spotlight {
    padding: 18px;
  }

  .intro-strip p,
  .hero-text,
  .card-description {
    font-size: 1.05rem;
  }

  .primary-btn {
    width: 100%;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
