/* The Celebration Secretary: draft site, direction A ("The House").
   Modelled on Soho House: warm white ground, Cardo for headlines,
   a clean grotesk for everything else, black pill buttons, big warm
   photography. Raspberry (the app's house colour) is a small accent only. */
:root {
  --ground: #FFFEF7;
  --ink: #000000;
  --soft: #4A4A4A;
  --mute: #7A7A7A;
  --line: #E9E5DA;
  --accent: #7E2547;
  --serif: "Cardo", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }

/* Masthead */
.mast {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px 24px; font-size: 14px;
}
.mast a { text-decoration: none; }
.mast .left a { margin-right: 22px; }
.wordmark { font-family: var(--serif); font-size: 21px; text-align: center; white-space: nowrap; }
.wordmark .dot { color: var(--accent); }
.mast .right { text-align: right; }
@media (max-width: 640px) {
  .mast { grid-template-columns: 1fr auto; }
  .mast .left { display: none; }
  .wordmark { text-align: left; font-size: 19px; }
}

/* Buttons */
.pill {
  display: inline-block; font-family: var(--sans); font-size: 14px; font-weight: 500;
  border: 0; border-radius: 999px; padding: 11px 22px; cursor: pointer; text-decoration: none;
  background: var(--ink); color: #fff;
}
.pill:hover { background: #333; color: #fff; }
.pill.light { background: #fff; color: var(--ink); }
.pill.light:hover { background: #f0efe8; }

/* Hero */
.hero {
  position: relative; margin: 0 16px; min-height: min(78vh, 720px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; overflow: hidden;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.32); }
.hero .inner { position: relative; z-index: 1; padding: 40px 24px; max-width: 760px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; margin: 0 0 28px;
  font-size: clamp(36px, 6vw, 60px); line-height: 1.15;
}

/* Centred text sections */
.centre { text-align: center; max-width: 600px; margin: 0 auto; padding: 80px 24px; }
.centre p { margin: 0 0 22px; }
.label {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.6vw, 46px);
  line-height: 1.15; margin: 0 0 20px;
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1000px; margin: 0 auto; padding: 0 24px 88px; text-align: center; }
.steps .n { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--accent); }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 12px 0 6px; }
.steps p { margin: 0; color: var(--soft); font-size: 17px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* Sign-up */
.join { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.join form { max-width: 440px; margin: 0 auto; text-align: left; }
.join label { display: block; font-size: 13px; font-weight: 500; margin: 18px 0 6px; }
.join input {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--ground);
  border: 1px solid #CFCAC0; border-radius: 4px; padding: 12px 14px;
}
.join input:focus { outline: 1px solid var(--ink); border-color: var(--ink); }
.join .pill { width: 100%; margin-top: 24px; padding: 14px; font-size: 15px; }
.join .small { font-size: 14px; color: var(--mute); text-align: center; margin: 14px 0 0; }

/* Guide cards */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 16px 96px; max-width: 1240px; margin: 0 auto; }
.guide { text-decoration: none; color: var(--ink); }
.guide .img { aspect-ratio: 4 / 5; overflow: hidden; }
.guide img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.guide:hover img { transform: scale(1.03); }
.guide .kind { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 16px 0 4px; }
.guide h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; margin: 0; }
@media (max-width: 820px) { .guides { grid-template-columns: 1fr; } .guide .img { aspect-ratio: 3 / 2; } }

/* Guide pages */
.article-head { text-align: center; max-width: 760px; margin: 0 auto; padding: 56px 24px 40px; }
.article-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6.4vw, 64px); line-height: 1.1; margin: 0; }
.article-head .standfirst { font-size: 20px; color: var(--soft); margin: 20px auto 0; max-width: 32em; }
.banner { margin: 0 16px; height: min(60vh, 560px); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; }

article { max-width: 680px; margin: 0 auto; padding: 56px 24px 24px; }
article h2 { font-size: clamp(28px, 4vw, 36px); margin: 52px 0 14px; }
article h2:first-child { margin-top: 0; }
article h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 28px 0 8px; }
article ul { padding-left: 20px; }
article li { margin-bottom: 8px; }

.answer { text-align: center; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 32px 16px; margin: 0 0 8px; }
.answer .big { font-family: var(--serif); font-size: clamp(40px, 7vw, 60px); line-height: 1.1; }
.answer p { margin: 10px 0 0; color: var(--soft); }

table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 17px; }
th, td { text-align: left; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); }
th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 600; }

.msg {
  font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1.45;
  border-left: 1px solid var(--accent); padding: 2px 0 2px 22px; margin: 18px 0;
}

/* Closing invitation */
.invite { position: relative; margin: 72px 16px 0; min-height: 420px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; }
.invite img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.invite::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.38); }
.invite .inner { position: relative; z-index: 1; padding: 48px 24px; max-width: 560px; }
.invite h2 { color: #fff; }
.invite p { margin: 0 0 26px; }

footer { text-align: center; padding: 56px 24px 64px; font-size: 14px; color: var(--mute); }
footer .wordmark { display: block; color: var(--ink); margin-bottom: 6px; }
footer a { color: var(--mute); }

/* The postmark logo (version A). Inline SVG, coloured with currentColor. */
.postmark { display: block; color: var(--accent); height: auto; }
footer .postmark { margin: 0 auto 14px; }
footer p { margin: 0; }
.join .centre { position: relative; }
.postmark.stamped { margin: 0 auto 18px; transform: rotate(-12deg); opacity: 0.92; }

/* Gift guide round-up lists */
.picks { list-style: none; padding: 0; }
.picks li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.picks a { font-family: var(--serif); font-size: 21px; text-decoration: none; border-bottom: 1px solid var(--accent); }

/* Hero subtitle */
.hero .sub { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.6vw, 26px); margin: -14px 0 28px; }

/* Waitlist form states */
.join .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join .joined { text-align: center; padding: 12px 0 4px; }
.join .joined h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 8px; }
.join .error { color: var(--accent); margin: 0 0 8px; }

/* Keep headings from leaving a single word on its own line */
h1, h2, h3, .hero .sub, .standfirst, .steps p { text-wrap: balance; }
