/* ====================================================================
   GLADLY INVITED, BRAND IDENTITY
   This is the shop, not the merchandise. It stays exactly the same
   whichever card you are looking at: champagne paper, bronze-gold,
   espresso ink, Instrument Serif over Manrope.

   The ground is a warm parchment rather than a near-white, partly
   because it is prettier and partly because two of the three cards open
   on a near-white cream, the shop has to be its own colour, or
   scrolling from the shop into a card would look like nothing happened.

   A card's colours (Mehraab's maroon, Chiraghaan's peacock) belong to
   that card and appear only inside a preview or a thumbnail. Nothing in
   this file ever changes with the card on screen.
   ==================================================================== */

:root {
  /* surfaces, warm champagne paper, panels a shade lighter than the ground */
  --bg:      #F2E6D0;
  --panel:   #FBF5E9;
  --raised:  #EADCC0;
  --hover:   #E4D4B4;
  --line:    rgba(43,30,20,.15);
  --line-2:  rgba(43,30,20,.28);

  /* ink, espresso, warm all the way down */
  --ink:     #2B1E14;
  --ink-2:   #6A5748;
  --ink-3:   #77624E;

  /* Two bronzes, not one. #9C6B24 is only 3.9:1 on the ground, fine for
     display type and fills, too little for an 11px eyebrow, so small
     accent text takes the darker one. */
  --accent:     #9C6B24;
  --accent-ink: #7C4F14;
  --accent-2:   #B07E2C;
  --accent-hi:  #E3C185;
  --accent-dim: rgba(156,107,36,.14);
  /* Kept within a narrow range: a wider gradient leaves the dark end of
     the sweep too dark for the label sitting on it. */
  --gold: linear-gradient(145deg, #E3C185 0%, #C79341 55%, #B07E2C 100%);
  --on-gold: #2A1206;

  --ok:   #1F7A4D;
  --warn: #A85E12;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px;
  --shell: min(1200px, 92vw);
  --bar: 62px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(1100px 600px at 50% -12%, rgba(156,107,36,.07), transparent 68%);
  background-attachment: fixed;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 15px; line-height: 1.6; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--accent-dim); }
img, svg { display: block; max-width: 100%; }

.shell { width: var(--shell); margin: 0 auto; }

/* Display face, used sparingly, for headlines and the wordmark only. */
.display { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; letter-spacing: -.02em; }
.display em { font-style: italic; color: var(--accent); }

.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-ink);
}
.lede { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--ink-2); line-height: 1.65; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }

/* ---------------- masthead ---------------- */
.mast {
  position: sticky; top: 0; z-index: 60; height: var(--bar);
  display: flex; align-items: center; gap: 18px;
  padding: 0 clamp(16px, 3vw, 30px);
  background: rgba(242,230,208,.84);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: 'Instrument Serif', Georgia, serif; font-size: 25px; font-weight: 400;
  letter-spacing: -.015em; white-space: nowrap; line-height: 1;
}
.wordmark .dot { color: var(--accent); }
.mast nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
/* :not(.btn) matters. Without it this rule outweighs .btn-accent. It was
   repainting the masthead CTA's text in --ink-2 on gold, overriding its
   padding, and turning it into a plain grey chip on hover. */
.mast nav a:not(.btn) {
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: color .16s ease, background .16s ease;
}
.mast nav a:not(.btn):hover { color: var(--ink); background: var(--raised); }
.mast nav a:not(.btn)[aria-current="page"] { color: var(--ink); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; white-space: nowrap;
  font-size: 13.5px; font-weight: 700; letter-spacing: -.005em;
  height: 42px; padding: 0 20px; border-radius: var(--r-sm);
  border: 1px solid transparent; background: none; color: var(--ink);
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .1s ease;
}
.btn:active { transform: translateY(.5px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--ink); color: #F7EFE0; }
.btn-primary:hover { background: #17100A; }
/* Gold leaf: a lit edge along the top, deeper bronze at the bottom. */
.btn-accent {
  background: var(--gold); color: var(--on-gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 10px rgba(156,107,36,.18);
}
.btn-accent:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 18px rgba(156,107,36,.32); }
.btn-quiet { border-color: var(--line-2); }
.btn-quiet:hover { background: var(--hover); border-color: rgba(156,107,36,.5); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: var(--raised); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 12.5px; }

/* ---------------- surfaces ---------------- */
.panel {
  background: var(--panel) linear-gradient(180deg, rgba(255,255,255,.65), transparent 46%);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(30px, 4vw, 46px); }
.section-head h2 { font-size: clamp(28px, 4.2vw, 44px); margin: 12px 0 0; }
.section-head p { margin-top: 14px; }

.rule { height: 1px; border: 0; margin: 0;
        background: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2);
}
.tag-accent { border-color: rgba(156,107,36,.45); color: var(--accent-ink); background: var(--accent-dim); }

/* ---------------- footer ---------------- */
.foot { border-top: 1px solid var(--line); padding: 44px 0 54px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.foot p { font-size: 13px; color: var(--ink-3); }
.foot nav { display: flex; gap: 18px; margin-left: auto; }
.foot nav a { font-size: 13px; color: var(--ink-3); }
.foot nav a:hover { color: var(--ink-2); }

/* ---------------- motion ---------------- */
[data-r] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
[data-r].on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-r] { opacity: 1 !important; transform: none !important; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .mast nav a { padding: 8px 9px; font-size: 13px; }
}
@media (max-width: 560px) {
  /* The bar is a fixed 62px. Four links plus a button wrap out of it on a
     phone, so the secondary links stand down and the footer carries them. */
  .mast nav a:not(.btn) { display: none; }
  .mast nav a.btn { white-space: nowrap; }
}
