:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --tint: #eaf0fa;
  --text: #16243d;
  --muted: #51607a;
  --primary: #1f56b5;
  --primary-hover: #174391;
  --accent: #c2362b;
  --accent-hover: #a62b22;
  --border: #d6dfec;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(22, 36, 61, 0.08);
  --shadow-md: 0 10px 28px rgba(22, 36, 61, 0.1);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 16px;
  font-weight: 400;
}

.wp-container {
  max-width: 1120px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: hidden;
}

.wp-main,
.wp-hero,
.wp-section {
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Signature Air-Mail Stripe */
.wp-airmail-strip {
  height: 6px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--primary) 0,
    var(--primary) 14px,
    var(--surface) 14px,
    var(--surface) 22px,
    var(--accent) 22px,
    var(--accent) 36px,
    var(--surface) 36px,
    var(--surface) 44px
  );
}

/* Header */
.wp-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 25;
}

.wp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  min-width: 0;
}

.wp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.wp-stamp-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--surface);
  border: 2px dashed rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.wp-brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
}

.wp-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.wp-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.wp-nav a:hover {
  color: var(--primary);
}

.wp-nav .wp-nav-cta {
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--surface);
}

.wp-nav .wp-nav-cta:hover {
  background: var(--primary-hover);
  color: var(--surface);
}

/* Hero */
.wp-hero {
  padding: 32px 0 48px;
}

.wp-hero-head {
  margin-bottom: 24px;
}

.wp-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
}

.wp-h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.wp-h1-wax {
  color: var(--accent);
}

.wp-lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 68ch;
}

/* Buttons */
.wp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.wp-btn:hover {
  transform: translateY(-1px);
}

.wp-btn-primary {
  background: var(--primary);
  color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.wp-btn-primary:hover {
  background: var(--primary-hover);
  color: var(--surface);
}

.wp-btn-wax {
  background: var(--accent);
  color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.wp-btn-wax:hover {
  background: var(--accent-hover);
  color: var(--surface);
}

.wp-btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.wp-btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Engagement Toolbar */
.wp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.wp-toolbar-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.wp-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.wp-tool-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.wp-tool-btn[data-gf-liked],
.wp-tool-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}

.wp-tool-btn[data-gf-liked] .wp-badge {
  background: rgba(255, 255, 255, 0.24);
  color: var(--surface);
}

.wp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.wp-share-msg {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

/* Sections */
.wp-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.wp-sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.wp-sec-head h2 {
  margin: 0;
  font-size: 32px;
}

.wp-postmark-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1.5px dashed var(--primary);
  background: var(--tint);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.wp-sec-intro {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 68ch;
}

/* 3-Stage Postal Flow */
.wp-stages-3 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.wp-stage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.wp-stage-num {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.wp-stage-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.wp-stage-card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* Navy Postal Showcase Band */
.wp-band-navy {
  background: var(--text);
  color: var(--surface);
  border-top: 0;
}

.wp-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.wp-prose-light h2 {
  color: var(--surface);
}

.wp-prose-light p {
  margin: 0 0 14px;
  color: var(--tint);
  max-width: 66ch;
}

.wp-spec-list {
  margin: 16px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--bg);
}

.wp-illus-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.wp-illus-card img {
  width: 100%;
  border-radius: 10px;
}

.wp-illus-caption {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Postcard Prompt Grid (2x3) */
.wp-prompts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.wp-prompt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.wp-prompt-stamp {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.wp-prompt-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.wp-prompt-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* FAQ Accordion */
.wp-faq-list {
  display: grid;
  gap: 12px;
}

.wp-faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.wp-faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wp-faq-item summary::-webkit-details-marker {
  display: none;
}

.wp-faq-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.wp-faq-item[open] summary::after {
  content: "\2212";
}

.wp-faq-answer {
  padding: 0 24px 18px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.wp-faq-answer p {
  margin: 12px 0 0;
  max-width: 70ch;
}

/* Comments */
.wp-comments-head {
  margin-bottom: 20px;
}

.wp-comments-head h3 {
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.wp-muted {
  margin: 0;
  color: var(--muted);
}

.wp-comment-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.wp-reply-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 14px;
}

.wp-comment-form[data-gf-replying] .wp-reply-banner {
  display: flex !important;
}

.wp-form-row {
  margin-bottom: 16px;
}

.wp-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.wp-field input,
.wp-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

.wp-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.wp-comment-msg {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

.wp-comments-list {
  display: grid;
  gap: 16px;
}

.wp-comments-list[data-gf-empty]::before {
  content: "No notes in the guestbook yet — drop a favorite December postcard idea below.";
  display: block;
  padding: 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}

.wp-comment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
}

.wp-comment[data-gf-owner] {
  border-color: var(--primary);
  background: var(--bg);
}

.wp-comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.wp-c-owner {
  padding: 2px 8px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--surface);
  font-size: 12px;
  font-weight: 600;
}

.wp-c-to {
  color: var(--primary);
  font-weight: 600;
}

.wp-c-time {
  color: var(--muted);
  font-size: 12px;
}

.wp-c-text {
  margin: 0 0 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.wp-link-btn {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.wp-link-btn:hover {
  text-decoration: underline;
}

.wp-replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  display: grid;
  gap: 12px;
}

.wp-replies:empty {
  display: none;
}

/* Inner & Legal Pages */
.wp-doc {
  padding: 48px 0 64px;
}

.wp-doc-inner {
  max-width: 780px;
}

.wp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.wp-doc-meta {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.wp-doc-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.wp-doc-body h2 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.wp-doc-body h2:first-child {
  margin-top: 0;
}

.wp-doc-body p,
.wp-doc-body li {
  max-width: 70ch;
}

/* Footer */
.wp-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.wp-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.wp-footer-brand {
  max-width: 520px;
}

.wp-footer-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.wp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
}

.wp-footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.wp-footer-links a:hover {
  color: var(--primary);
}

.wp-footer-copy {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.wp-footer-copy p {
  margin: 0;
}

@media (max-width: 900px) {
  .wp-stages-3,
  .wp-prompts-grid,
  .wp-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wp-container {
    padding: 0 14px;
  }
  .wp-header-inner {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 8px 0;
    min-height: 52px;
  }
  .wp-brand {
    flex-shrink: 0;
  }
  .wp-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 12px;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 2px;
  }
  .wp-nav a {
    font-size: 13px;
    flex-shrink: 0;
  }
  .wp-hero {
    padding: 14px 0 36px;
  }
  .wp-hero-head {
    margin-bottom: 12px;
  }
  .wp-kicker {
    font-size: 12px;
    padding: 2px 8px;
    margin-bottom: 6px;
  }
  .wp-h1,
  h1 {
    font-size: 1.75rem;
    line-height: 1.15;
    margin-bottom: 6px;
  }
  .wp-lead {
    font-size: 14px;
    line-height: 1.45;
  }
  .wp-doc-body {
    padding: 20px;
  }
}
