/*
Theme Name: Postal Club Envelope
Theme URI: https://example.com/postal-club-envelope
Author: OpenAI
Description: A warm-and-cool envelope-inspired block theme for traditional correspondence clubs. Designed to pair with the Postal Club Registry plugin.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: postal-club-envelope
License: GPL-2.0-or-later
*/

:root {
  --pc-paper: #f6edda;
  --pc-paper-deep: #e9d6b7;
  --pc-ink: #263b42;
  --pc-muted: #66777b;
  --pc-coral: #c96f5c;
  --pc-coral-deep: #9f4d42;
  --pc-teal: #3f7d7a;
  --pc-navy: #31516b;
  --pc-sage: #93aa9b;
  --pc-line: #d5c5aa;
  --pc-white: #fffaf0;
}

html { scroll-behavior: smooth; }
body { background: var(--pc-paper); color: var(--pc-ink); }
a { text-underline-offset: .15em; }

.wp-site-blocks { overflow: hidden; }
.pc-site-header {
  border-bottom: 8px solid transparent;
  border-image: repeating-linear-gradient(135deg, var(--pc-coral) 0 18px, var(--pc-white) 18px 36px, var(--pc-navy) 36px 54px, var(--pc-white) 54px 72px) 8;
}

.pc-envelope-stage {
  position: relative;
  isolation: isolate;
  margin-top: 2rem;
  margin-bottom: 3rem;
  padding: clamp(1rem, 3vw, 2.2rem);
  border: 1px solid var(--pc-line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, transparent 0 48%, rgba(63,125,122,.08) 48% 52%, transparent 52%),
    linear-gradient(35deg, transparent 0 48%, rgba(201,111,92,.09) 48% 52%, transparent 52%),
    var(--pc-paper-deep);
  box-shadow: 0 28px 70px rgba(49,81,107,.16);
}

.pc-envelope-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(255,255,255,.55), transparent 40%);
}

.pc-letter-sheet {
  border: 1px solid rgba(49,81,107,.18);
  border-radius: 18px;
  background: var(--pc-white);
  box-shadow: 0 18px 45px rgba(38,59,66,.13);
}

.pc-postmark {
  display: inline-flex;
  min-width: 132px;
  min-height: 132px;
  align-items: center;
  justify-content: center;
  border: 3px double var(--pc-navy);
  border-radius: 50%;
  color: var(--pc-navy);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-8deg);
  opacity: .8;
}

.pc-stamp {
  border: 6px dotted var(--pc-white);
  outline: 2px solid var(--pc-coral);
  background: var(--pc-coral);
  color: var(--pc-white);
  box-shadow: 0 8px 20px rgba(159,77,66,.2);
}

.pc-wax-seal {
  display: inline-grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #df8e77, var(--pc-coral-deep) 70%);
  color: white;
  font-family: Georgia, serif;
  font-size: 1.7rem;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.18), 0 8px 18px rgba(99,43,38,.24);
}

.pc-footer { border-top: 1px solid var(--pc-line); }

@media (max-width: 700px) {
  .pc-postmark { min-width: 96px; min-height: 96px; font-size: .68rem; }
  .pc-envelope-stage { border-radius: 18px; }
}
