/* The Sovereign Society — redesign prototype
   Palette, type and layout tokens. Plain CSS, no framework. */

:root {
  --porcelain: #f6f2ea;   /* page */
  --bisque: #ebe3d2;      /* quiet bands */
  --card: #fbf8f1;        /* the invitation card */
  --green: #1e3a30;       /* deep green: Lady Vivienne's dress, the library velvet */
  --green-deep: #142a22;
  --gold: #a88a4f;        /* the crest */
  --gilt: #d6c08a;        /* gold on green */
  --ink: #2b2722;
  --ink-soft: #5f5850;
  --claret: #6e2c3a;      /* the Christmas tea florals, used once */
  --rule: rgba(168, 138, 79, .45);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); text-decoration-color: var(--rule); text-underline-offset: .18em; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--green); color: #fff; padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.3rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); font-weight: 600; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.35; font-weight: 500; }
.muted { color: var(--ink-soft); }
.small { font-size: .95rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .9rem 1.6rem;
  border: 1px solid var(--green);
  border-radius: 2px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.gold:hover { background: #967a43; border-color: #967a43; }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: rgba(30, 58, 48, .07); }
.btn.on-dark { background: var(--gilt); border-color: var(--gilt); color: var(--green-deep); }
.btn.on-dark:hover { background: #e5d2a3; border-color: #e5d2a3; }
.btn.on-dark.ghost { background: transparent; color: var(--gilt); }
.btn.on-dark.ghost:hover { background: rgba(214, 192, 138, .12); }

.textlink {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .1em;
}
.textlink:hover { border-bottom-color: var(--green); }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section.band { background: var(--bisque); }
.section.dark { background: var(--green); color: #efe9dc; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a { color: var(--gilt); }

.two {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (min-width: 52em) {
  .two { grid-template-columns: 1fr 1fr; }
  .two.wide-text { grid-template-columns: 7fr 5fr; }
  .two.wide-photo { grid-template-columns: 5fr 7fr; }
  .two > .order-last { order: 2; }
}

.frame { position: relative; }
.frame img { width: 100%; }
.frame::after {
  content: "";
  position: absolute; inset: .85rem;
  border: 1px solid rgba(214, 192, 138, .9);
  pointer-events: none;
}
.frame.tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.frame.portrait img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0; }
.frame.wide img { aspect-ratio: 16 / 10; object-fit: cover; }

/* one gold ornament, used where a section starts */
.orn {
  width: 3.5rem; height: 1px; background: var(--gold);
  margin: 0 0 1.4rem;
  position: relative;
}
.orn::before, .orn::after {
  content: ""; position: absolute; top: -3px; width: 7px; height: 7px;
  border: 1px solid var(--gold); transform: rotate(45deg); background: var(--porcelain);
}
.orn::before { left: -4px; } .orn::after { right: -4px; }
.band .orn::before, .band .orn::after { background: var(--bisque); }
.dark .orn { background: var(--gilt); }
.dark .orn::before, .dark .orn::after { border-color: var(--gilt); background: var(--green); }
.orn.center { margin-inline: auto; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 242, 234, .94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap;
}
.brand img { width: 2.4rem; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 600; }
.nav a:hover { color: var(--green); }
.nav .btn { padding: .6rem 1.1rem; font-size: .95rem; }
.menu-btn {
  margin-left: auto; display: none;
  background: none; border: 1px solid var(--rule); border-radius: 2px;
  font: 600 1rem var(--sans); color: var(--ink); padding: .5rem .9rem; cursor: pointer;
}
@media (max-width: 64em) {
  .menu-btn { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--porcelain); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid rgba(168,138,79,.2); font-size: 1.1rem; }
  .nav .btn { margin-top: 1rem; text-align: center; border-bottom: 1px solid var(--green); }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  background: var(--green);
  color: #efe9dc;
}
@media (min-width: 52em) {
  .hero { grid-template-columns: 11fr 9fr; min-height: calc(100vh - 4.5rem); min-height: calc(100svh - 4.5rem); }
}
.hero-text {
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 52em) {
  .hero-text { padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); padding-right: clamp(2rem, 5vw, 5rem); }
}
.hero-text h1 { color: #fff; max-width: 13ch; }
.hero-text .lede { color: #e6dfcf; max-width: 32ch; font-size: clamp(1.25rem, 1.6vw, 1.45rem); }
.hero-text p { color: #cfc7b5; }
.hero-text p:not(.lede) { font-size: 1.05rem; }
.hero-crest { width: clamp(4rem, 5vw, 5rem); margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem 1rem; margin-top: 1.5rem; align-items: center; }
.hero-note { margin: 1.4rem 0 0; font-size: .95rem; color: #b9b09c; }
.hero-photo { position: relative; min-height: 60vw; }
@media (min-width: 52em) { .hero-photo { min-height: 0; } }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 1rem;
  border: 1px solid rgba(214, 192, 138, .85); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; }
  .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; }
  .hero-text > :nth-child(5) { animation-delay: .32s; }
  .hero-text > :nth-child(6) { animation-delay: .4s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- welcome / about ---------- */
.pillars { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 52em) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.pillars h3 { margin-bottom: .4em; }
.pillars p { font-size: 1.05rem; }
.quote {
  font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.25; font-style: italic; font-weight: 500;
  max-width: 24ch; margin: 0;
}

/* ---------- Lady Vivienne ---------- */
.ways { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.5rem; }
.ways li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.1rem; align-items: start; }
.ways img { width: 3.4rem; height: 3.4rem; object-fit: contain; }
.ways h3 { font-size: 1.4rem; margin-bottom: .2em; }
.ways p { font-size: 1.05rem; margin-bottom: .3em; }

/* ---------- the invitation ---------- */
.tea { background: var(--bisque); }
.invite-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60em) { .invite-grid { grid-template-columns: 1fr 1fr; } }
.invitation {
  background: var(--card);
  border: 1px solid var(--gold);
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  box-shadow: 0 30px 60px -40px rgba(43, 39, 34, .45);
}
.invitation::before {
  content: ""; position: absolute; inset: .5rem; border: 1px solid var(--rule); pointer-events: none;
}
.invitation img { width: 4rem; margin: 0 auto 1rem; }
.invitation .presents { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); margin: 0 0 .4rem; }
.invitation h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); color: var(--claret); margin-bottom: .3em; }
.invitation h2 em { font-style: italic; font-weight: 500; }
.invitation .tagline { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; margin: 0 auto 1.6rem; max-width: 26ch; }
.invitation .when { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.25; margin: 0; }
.invitation .where { margin: .5rem auto 0; max-width: 30ch; }
.invitation .where a { color: var(--ink); }
.invitation .rule { width: 4rem; height: 1px; background: var(--gold); margin: 1.4rem auto; }
.invitation .price { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin: 0 0 1.2rem; }
.invitation .price small { display: block; font-family: var(--sans); font-size: .95rem; font-weight: 400; color: var(--ink-soft); }
.invitation .catered { font-size: .95rem; color: var(--ink-soft); margin: 1.1rem 0 0; }
.btn.claret { background: var(--claret); border-color: var(--claret); }
.btn.claret:hover { background: #5a2330; border-color: #5a2330; }
.tea-photo { display: grid; gap: 1.25rem; align-content: start; }
.tea-photo .frame img { aspect-ratio: 16 / 10; object-fit: cover; }
.tea-photo p { max-width: none; }

/* ---------- journal / reflections ---------- */
.post-card {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 1.75rem 0; margin-top: 2.5rem;
}
.post-card .date { color: var(--ink-soft); font-size: .95rem; margin-bottom: .3rem; }
.post-card h3 { margin-bottom: .3em; }

/* ---------- collection ---------- */
.pieces { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.25rem 2rem; }
@media (min-width: 40em) { .pieces { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .pieces { grid-template-columns: repeat(5, 1fr); } }
.pieces li { border-top: 1px solid var(--rule); padding-top: 1rem; }
.pieces h3 { font-size: 1.35rem; margin-bottom: .25em; }
.pieces p { font-size: 1rem; margin-bottom: .4em; }
.pieces .status { font-size: .9rem; color: var(--gold); font-weight: 600; }

/* ---------- the guide (one form) ---------- */
.guide-form { display: grid; gap: .75rem; max-width: 30rem; margin-top: 1.5rem; }
@media (min-width: 40em) { .guide-form { grid-template-columns: 1fr auto; align-items: end; } }
label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid rgba(43, 39, 34, .35); border-radius: 2px;
  padding: .8rem .9rem;
}
.dark input, .dark select, .dark textarea { border-color: transparent; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.help { font-size: .95rem; margin-top: .8rem; }

/* ---------- contact ---------- */
.contact-form { display: grid; gap: 1.1rem; }
@media (min-width: 40em) { .contact-form { grid-template-columns: 1fr 1fr; } .contact-form .full { grid-column: 1 / -1; } }
.social { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.social a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; }
.social a:hover { text-decoration: underline; }
.social svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }

/* ---------- footer ---------- */
.site-foot { background: var(--green-deep); color: #cfc7b5; padding-block: 3.5rem 2.5rem; font-size: 1rem; }
.site-foot a { color: #e9e2d1; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 52em) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-grid img { width: 4.5rem; margin-bottom: 1rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot-grid h3 { font-size: 1.2rem; color: #fff; margin-bottom: .6em; }
.foot-bottom {
  border-top: 1px solid rgba(214, 192, 138, .3); margin-top: 2.5rem; padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9rem;
}

/* ---------- inner pages (reflections, privacy, terms) ---------- */
.article { padding-block: clamp(3rem, 7vw, 5.5rem); }
.article header { margin-bottom: 2.5rem; }
.article h1 { font-size: clamp(2.3rem, 4.5vw, 3.6rem); max-width: 24ch; }
.article h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-top: 2.2em; }
.article p, .article li { max-width: 38rem; font-size: 1.15rem; }
.article ul { padding-left: 1.2rem; }
.article li { margin-bottom: .6em; }
.article .pull {
  font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.3; font-weight: 500;
  border-left: 2px solid var(--gold); padding-left: 1.2rem; margin: 2rem 0; max-width: 28ch;
}
.article .back { display: inline-block; margin-bottom: 1.5rem; }
