/*
  Iris Moon Readings — styles
  Look: turn-of-the-century French poster. Muted inks on oatmeal paper, arch-framed prints with a
  thin gold inner rule, swashed display capitals, a clean deco sans for everything else.
  Each section picks a color theme (.t-burgundy, .t-olive, .t-navy, .t-oat, .t-tan, .t-wine);
  components read their colors from the theme.
*/

:root {
  /* Palette */
  --oat: #EDE4D3;        /* oatmeal paper */
  --tan: #DFCEAE;
  --ink: #2B201D;        /* warm near-black for body text on paper */
  --burgundy: #5E1F2E;
  --wine: #3F141F;       /* darkest burgundy, footer */
  --cranberry: #8E2F47;
  --rose: #C4687F;       /* deep pink */
  --rose-light: #D995A8;
  --olive: #4C5229;
  --navy: #2C3B55;       /* washed navy */
  --gold: #C9A24A;
  --gold-light: #DDBB66;

  /* Type */
  --display: "Cinzel Decorative", "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Josefin Sans", "Futura", "Century Gothic", system-ui, sans-serif;
  --step-0: 1.125rem;
  --step-1: 1.3rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.9vw, 2.7rem);
  --step-4: clamp(1.95rem, 1.3rem + 2.9vw, 3.6rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wave: 44px;
  --radius: 14px;
  --maxw: 1180px;

  --sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.9 7.6 16.4 11.1 24 12C16.4 12.9 12.9 16.4 12 24C11.1 16.4 7.6 12.9 0 12C7.6 11.1 11.1 7.6 12 0Z'/%3E%3C/svg%3E");
  /* fine paper grain laid over every section */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12  0 0 0 0 .08  0 0 0 0 .06  0 0 0 .55 -.18'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");

  color-scheme: light;
}

/* Section color themes */
.t-burgundy, .t-olive, .t-navy, .t-oat, .t-tan, .t-wine { background-color: var(--bg); background-image: var(--grain); color: var(--fg); }
.t-burgundy { --bg: var(--burgundy); --fg: var(--oat); --head: var(--oat);      --em: var(--gold);       --accent: var(--gold);       --btn-bg: var(--gold);     --btn-fg: var(--ink); --line: rgb(237 228 211 / .28); }
.t-wine     { --bg: var(--wine);     --fg: var(--oat); --head: var(--oat);      --em: var(--gold);       --accent: var(--gold);       --btn-bg: var(--gold);     --btn-fg: var(--ink); --line: rgb(237 228 211 / .22); }
.t-olive    { --bg: var(--olive);    --fg: var(--oat); --head: var(--oat);      --em: var(--gold-light); --accent: var(--gold-light); --btn-bg: var(--oat);      --btn-fg: var(--ink); --line: rgb(237 228 211 / .3); }
.t-navy     { --bg: var(--navy);     --fg: var(--oat); --head: var(--oat);      --em: var(--rose-light); --accent: var(--gold);       --btn-bg: var(--rose);     --btn-fg: var(--ink); --line: rgb(237 228 211 / .28); }
.t-oat      { --bg: var(--oat);      --fg: var(--ink); --head: var(--burgundy); --em: var(--cranberry);  --accent: var(--gold);       --btn-bg: var(--burgundy); --btn-fg: var(--oat); --line: rgb(94 31 46 / .25); }
.t-tan      { --bg: var(--tan);      --fg: var(--ink); --head: var(--burgundy); --em: var(--olive);      --accent: var(--burgundy);   --btn-bg: var(--burgundy); --btn-fg: var(--oat); --line: rgb(94 31 46 / .28); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wine);
  color: var(--oat);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.t-oat :focus-visible, .t-tan :focus-visible { outline-color: var(--burgundy); }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--oat); color: var(--ink); padding: .5rem 1rem; border-radius: 999px; }

/* Type: the display face is for the big headings and the logo only. Its capitals carry the
   swashes and its lowercase letters are small capitals, so headings stay in sentence case. */
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .005em;
  margin: 0;
  color: var(--head);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h1 em, h2 em { font-style: normal; color: var(--em); }
/* small ornament under section headings: rule, star, rule */
h2::after {
  content: "";
  display: block;
  width: 8.5rem; height: 14px;
  margin-top: 1.1rem;
  background: var(--accent);
  -webkit-mask: linear-gradient(#000 0 0) left center / calc(50% - 14px) 1.5px no-repeat, linear-gradient(#000 0 0) right center / calc(50% - 14px) 1.5px no-repeat, var(--sparkle) center / 14px 14px no-repeat;
          mask: linear-gradient(#000 0 0) left center / calc(50% - 14px) 1.5px no-repeat, linear-gradient(#000 0 0) right center / calc(50% - 14px) 1.5px no-repeat, var(--sparkle) center / 14px 14px no-repeat;
}
.stack--center h2::after { margin-inline: auto; }
h3, .ideas dt {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0;
  color: var(--head);
}
.lead { font-size: var(--step-1); line-height: 1.5; }
.prose { display: grid; gap: 1.1em; max-width: 36rem; }
.small { font-size: 1rem; opacity: .85; }

/* Layout */
.section { position: relative; padding-block: clamp(4rem, 9vw, 7rem); padding-inline: var(--gutter); }
.section[id] { scroll-margin-top: 3rem; }
.wrap { max-width: var(--maxw); margin-inline: auto; position: relative; }
.stack { display: grid; gap: 1.25rem; justify-items: start; }
.stack--center { justify-items: center; text-align: center; }
.split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .split--flip > :first-child { order: 2; }
}

/* Wavy top edge: crops this section's own background so the section above shows through */
.wave {
  margin-top: calc(var(--wave) * -1);
  padding-top: calc(clamp(4rem, 9vw, 7rem) + var(--wave));
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 34C180 6 360 2 560 22s420 36 620 16 200-24 260-20V60H0Z'/%3E%3C/svg%3E") top / 100% var(--wave) no-repeat,
    linear-gradient(#000 0 0) 0 calc(var(--wave) - 1px) / 100% 100% no-repeat;
          mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 34C180 6 360 2 560 22s420 36 620 16 200-24 260-20V60H0Z'/%3E%3C/svg%3E") top / 100% var(--wave) no-repeat,
    linear-gradient(#000 0 0) 0 calc(var(--wave) - 1px) / 100% 100% no-repeat;
}

/* Buttons and links */
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem;
  padding: 1rem 1.9rem .82rem;   /* Josefin Sans sits high in its line box */
  border-radius: 999px;
  font: 600 .84rem/1 var(--body);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg);
  cursor: pointer;
  transition: transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.link-arrow {
  font-weight: 600; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 3px;
}
.link-arrow::after { content: " \2192"; }

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgb(94 31 46 / .92);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(201 162 74 / .45);
  padding-inline: var(--gutter);
}
.site-header__inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.5rem;
}
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--oat); }
.logo svg { width: 2.5rem; height: 2.5rem; flex: none; color: var(--gold); }
.logo__text { display: grid; line-height: 1; }
.logo__name { font-family: var(--display); font-size: 1.32rem; font-weight: 400; letter-spacing: .02em; line-height: 1; }
.logo__sub { font-size: .56rem; font-weight: 600; letter-spacing: .44em; text-transform: uppercase; color: var(--gold); margin-top: .28rem; }
.nav { display: none; }
.nav a { text-decoration: none; font-weight: 600; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; padding-top: .2em; }
.nav a:hover { color: var(--gold-light); }
.nav .nav__cta { --btn-bg: var(--gold); --btn-fg: var(--ink); min-height: 2.6rem; padding: .78rem 1.3rem .62rem; color: var(--ink); }
.menu-btn {
  appearance: none; background: none; border: 1.5px solid rgb(201 162 74 / .7); color: var(--oat);
  border-radius: 999px; padding: .72rem 1.1rem .55rem; font: 600 .76rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
}
.mobile-nav { display: grid; gap: .4rem; padding: .75rem 0 1.5rem; max-width: var(--maxw); margin-inline: auto; }
.mobile-nav a { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; text-decoration: none; padding: .3rem 0; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 2rem; }
  .menu-btn, .mobile-nav { display: none !important; }
}

/* Arch-framed prints, with a thin gold rule set inside the frame */
.arch {
  --inset: 10px;
  position: relative;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  width: 100%;
  background: var(--navy);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::after {
  content: "";
  position: absolute; inset: var(--inset);
  border: 1.5px solid var(--gold);
  border-radius: 999px 999px calc(var(--radius) - 6px) calc(var(--radius) - 6px);
  pointer-events: none;
}
.arch--tall { aspect-ratio: 3 / 4.2; }
.arch--photo img { filter: sepia(.22) saturate(.85); }
.arch--print img { filter: saturate(.86); }
.arch--chart { display: grid; place-items: center; }
.arch--chart img { object-fit: contain; padding: 11% 4.5% 4%; }

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4.5rem, 9vw, 7rem); }
.hero__art { position: relative; max-width: 30rem; justify-self: center; width: 100%; }
/* The iris stands in front of the arch and breaks out past its frame */
.hero__art--bloom { --bloom-w: 83.5%; --bloom-left: 31%; --bloom-top: -1%; margin-bottom: 13%; }
.bloom {
  position: absolute;
  left: var(--bloom-left); top: var(--bloom-top);
  width: var(--bloom-w); max-width: none; height: auto;
  filter: drop-shadow(0 10px 16px rgb(20 12 16 / .38));
  pointer-events: none;
}
@media (max-width: 859px) {
  .hero__art--bloom { --bloom-left: 27%; width: 86%; }
}
.hero__art .sparkle { position: absolute; width: 2.4rem; height: 2.4rem; color: var(--gold); animation: twinkle 3.2s ease-in-out infinite; }
.hero__art .sparkle--a { top: 9%; left: -4%; }
.hero__art .sparkle--b { bottom: 14%; right: -3%; width: 1.5rem; height: 1.5rem; color: var(--rose); animation-delay: 1.4s; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(.7) rotate(20deg); opacity: .65; } }

/* Offering cards */
.cards { display: grid; gap: 2rem 1.5rem; width: 100%; }
@media (min-width: 760px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: grid; gap: .9rem; align-content: start; text-decoration: none; color: inherit; }
.card .arch { aspect-ratio: 4 / 4.4; margin-bottom: .25rem; }
.card .arch img { transition: transform .5s ease; }
a.card:hover .arch img { transform: scale(1.04); }
.card__text { display: grid; gap: .55rem; justify-items: start; }
@media (max-width: 759px) {
  .cards { gap: 1.4rem; }
  .card { grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: center; }
  .card .arch { --inset: 5px; aspect-ratio: 4 / 5; margin: 0; }
}

/* Event ideas list */
.ideas { margin: 0; display: grid; width: 100%; }
.ideas > div { display: grid; gap: .35rem 2rem; padding-block: 1.2rem; border-top: 1px solid var(--line); }
.ideas > div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .ideas > div { grid-template-columns: 16rem 1fr; align-items: baseline; } }
.ideas dt { color: var(--accent); }
.ideas dd { margin: 0; max-width: 40rem; }

/* Form */
.form { display: grid; gap: 1.1rem; width: 100%; max-width: 34rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: #F7F1E5;
  border: 1.5px solid rgb(201 162 74 / .8);
  border-radius: 10px;
  padding: .85rem 1rem .65rem;
  width: 100%;
  min-width: 0;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-light); outline-offset: 1px; }
.form__status { border-radius: 10px; padding: 1rem 1.1rem .85rem; background: rgb(0 0 0 / .22); border: 1px solid var(--line); }

/* Footer */
.site-footer { padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; }
.footer-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto; } }
.footer-nav { display: grid; gap: .5rem; justify-items: start; }
.footer-base { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }

/* Utilities */
.mt-1 { margin-top: .5rem; }
.max-36 { max-width: 36rem; }
@media (max-width: 859px) { .hide-mobile { display: none; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__art .sparkle { animation: none; }
  .btn, .card .arch img { transition: none; }
}
