:root {
  --bg: #f7f1e8;
  --card: #fffaf2;
  --surface: #efe5d6;
  --text: #2b2118;
  --muted: #6b5b4b;
  --accent: #c2562f;
  --accent-dark: #a14321;
  --gold: #e0a03a;
  --gold-soft: #f6e7c8;
  --border: #dfd3c2;
  --wood-outer: #5e3c24;
  --wood-inner: #7b5235;
  --linen: #ebe1d2;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(43, 33, 24, 0.06);
  --shadow-md: 0 8px 24px rgba(43, 33, 24, 0.08);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font-family: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 8px 16px; z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; border-radius: 8px; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(247, 241, 232, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand .gf-site-icon { width: 32px; height: 32px; border-radius: 8px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }

.tool-stage { padding: 28px 0 48px; }
.prose-section { padding: 48px 0; border-top: 1px solid var(--border); }
.faq-section { padding: 48px 0 64px; border-top: 1px solid var(--border); }
.page-article { padding: 48px 0 64px; }

.prose-wrap { max-width: 780px; }
.prose-wrap h1, .page-header h1 {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
}
.prose-wrap h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.25;
  margin: 36px 0 14px;
  color: var(--text);
}
.prose-wrap h3 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  margin: 24px 0 10px;
  color: var(--text);
}
.prose-wrap p, .prose-wrap li {
  max-width: 70ch;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}
.prose-wrap ul, .prose-wrap ol { padding-left: 22px; }
.prose-wrap li { margin-bottom: 8px; }
.page-subtitle, .page-meta { color: var(--muted); font-size: 16px; margin: 0 0 24px; }

.faq-list { display: grid; gap: 12px; margin-top: 20px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  font-weight: 600;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-tagline { color: var(--muted); font-size: 14px; margin: 8px 0 0; max-width: 52ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 13px; margin: 0; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible { outline: 3px solid rgba(194, 86, 47, 0.35); outline-offset: 2px; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-secondary:hover { border-color: var(--accent); background: #fff; }
.btn-secondary:focus-visible { outline: 3px solid rgba(194, 86, 47, 0.3); outline-offset: 2px; }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner { min-height: 58px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 14px; }
  .tool-stage { padding: 20px 0 36px; }
  .prose-wrap h1, .page-header h1 { font-size: 28px; }
  .prose-wrap h2 { font-size: 24px; }
  .btn-primary, .btn-secondary { width: 100%; }
}

.ow-sample-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.ow-sample-banner .btn-primary {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}
.ow-gift-label-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ow-gift-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.ow-gift-meta-row .ow-mini-input {
  grid-column: 1 / -1;
  font-size: 13px;
  padding: 8px 10px;
}
.ow-mini-select {
  font-size: 13px;
  padding: 8px 10px;
}
.ow-song-card {
  display: block;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.ow-song-card:hover {
  background: var(--gold-soft);
  text-decoration: none;
}
.ow-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.ow-modal-actions > * {
  flex: 1 1 160px;
}
.ow-env.opening {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(224, 160, 58, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ow-env.opening .ow-seal {
  animation: ow-seal-break 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes ow-seal-break {
  0% { transform: scale(1) rotate(0deg); opacity: 1; }
  45% { transform: scale(1.32) rotate(-14deg); opacity: 1; }
  100% { transform: scale(0.25) rotate(24deg); opacity: 0; }
}
.ow-letter-paper {
  animation: ow-paper-unfold 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ow-paper-unfold {
  0% { opacity: 0; transform: translateY(14px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Balanced Editorial Hero & 4x3 Keepsake Box Grid */
.ow-hero-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}
.ow-hero-intro .ow-h1 {
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.1;
  margin: 0;
}
.ow-h1-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ow-help-dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.ow-help-dot:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.ow-preview-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.ow-rules-list {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}
.ow-rules-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.ow-rules-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-dark);
}
.ow-hero-intro .ow-lead {
  margin: 0 auto;
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.6;
}
.tool-stage .ow-hero {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 32px;
  align-items: start;
}
.tool-stage .ow-box-shell {
  padding: 14px;
}
.tool-stage .ow-box-tray {
  padding: 12px;
}
.tool-stage .ow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.tool-stage .ow-env {
  min-height: 108px;
  aspect-ratio: auto;
  padding: 22px 8px 10px;
}
.tool-stage .ow-env-from {
  font-size: 12.5px;
  line-height: 1.25;
}
.tool-stage .ow-env-sub {
  font-size: 12px;
}
.ow-trust-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
@media (max-width: 960px) {
  .tool-stage .ow-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .tool-stage .ow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .ow-hero-intro {
    margin-bottom: 20px;
  }
  .tool-stage .ow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}