﻿:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --line: #dbeafe;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0f172a;
  --accent-soft: #2563eb;
  --button: #111827;
  --button-ghost: #f8fafc;
  --shadow: 0 20px 40px rgba(2, 6, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: linear-gradient(160deg, #dbeafe, #f0f9ff 50%, #f8fafc);
  color: var(--text);
}

.site-header {
  width: min(980px, calc(100% - 2rem));
  margin: 1.2rem auto 0;
}

.brand {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-header h1 {
  margin: 0.35rem 0 0.8rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.site-nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
}

.site-nav a:hover {
  background: #e2e8f0;
}

.page {
  width: min(980px, calc(100% - 2rem));
  margin: 1rem auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.section-title {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}

.quote-card,
.content-grid,
.tips,
.faq,
.policy {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  margin-top: 1rem;
}

.label {
  margin: 0;
  color: #2563eb;
  font-weight: 800;
}

.quote-text {
  margin: 0.5rem 0;
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  line-height: 1.7;
  font-weight: 700;
}

.quote-author {
  margin: 0.2rem 0;
  color: var(--accent-soft);
}

.quote-category,
.quote-count {
  margin: 0.2rem 0;
  color: var(--muted);
}

.quote-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

button {
  border: 0;
  border-radius: 12px;
  background: var(--button);
  color: #f8fafc;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  filter: brightness(0.93);
}

button.ghost {
  border: 1px solid var(--line);
  background: var(--button-ghost);
  color: var(--text);
}

fieldset {
  border: 1px dashed var(--line);
  border-radius: 12px;
  margin: 0.8rem 0 0;
  padding: 0.65rem;
}

legend {
  padding: 0 0.35rem;
  color: var(--muted);
}

.mood-btn {
  margin: 0.35rem 0.35rem 0 0;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid var(--line);
}

.mood-btn.active {
  background: #dbeafe;
  border-color: #60a5fa;
}

.copy-message {
  min-height: 1.2rem;
  margin-top: 0.7rem;
  color: #16a34a;
}

.content-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card,
.tips ol,
.faq,
.policy {
  color: var(--muted);
  line-height: 1.7;
}

.article-card h3 {
  margin: 0 0 0.5rem;
  color: var(--text);
}

.ad-section {
  margin-top: 1rem;
}

.adsense-zone {
  margin-top: 1rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  background: #f8fafc;
}

.adsense-zone p {
  margin: 0 0 0.5rem;
  color: #334155;
}

.faq details {
  margin-bottom: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  background: #f8fafc;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
}

.faq p {
  margin-bottom: 0.2rem;
}

.policy ul {
  padding-left: 1.2rem;
  margin-top: 0;
}

.site-footer {
  width: min(980px, calc(100% - 2rem));
  margin: 1rem auto 2rem;
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
  color: #64748b;
  flex-wrap: wrap;
}

.site-footer a {
  color: #2563eb;
}

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

  .site-footer {
    display: block;
  }
}
