/* Shared styles for alaratiernan.com */

:root {
  --cream: #fbf5e9;
  --paper: #fffcf6;
  --ink: #2b1d3a;
  --muted: #65566b;
  --teal: #1d7377;
  --gold-dark: #8a5a14;
  --gold-mid: #c08a2a;
  --gold-light: #f6dd8f;
  --gold: linear-gradient(135deg, #8a5a14 0%, #f6dd8f 18%, #c9932f 34%, #fff1c1 50%, #b67d22 66%, #f3d27a 82%, #8a5a14 100%);
  --raised: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 14px 30px -10px rgba(110, 70, 10, .35), 0 3px 8px rgba(110, 70, 10, .12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Mulish", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

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

a { color: var(--teal); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.5rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: .6em;
}

.section { padding-top: 56px; padding-bottom: 56px; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* Header */

.site-header { padding: 18px 0; }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.brand img { width: 40px; height: auto; }

.site-nav { display: flex; gap: 22px; margin-left: auto; }

.site-nav a {
  color: var(--ink);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold-mid); }

/* Gold-framed raised box: the gradient shows through the padding as a thick metallic outline */

.gold-frame {
  background: var(--gold);
  padding: 4px;
  border-radius: 22px;
  box-shadow: var(--raised);
}

.gold-frame > .inner {
  background: var(--paper);
  border-radius: 18px;
  box-shadow: inset 0 2px 5px rgba(120, 80, 20, .12);
  overflow: hidden;
}

.gold-frame.small { padding: 3px; border-radius: 16px; }
.gold-frame.small > .inner { border-radius: 13px; }

/* Gold beveled button */

.btn {
  display: inline-block;
  position: relative;
  top: 0;
  padding: 13px 28px;
  border: 1px solid #c49a3c;
  border-radius: 12px;
  background-color: #ebc35a;
  background-image: linear-gradient(#fff4c8, rgba(255, 244, 200, 0) 55%, rgba(170, 120, 30, .12));
  color: #4a3412;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 250, 225, .7);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 0 rgba(170, 120, 30, .15), 0 4px 0 #b98c34, 0 7px 14px rgba(150, 105, 20, .25);
  transition: background-color .2s, box-shadow .15s, top .15s;
}

.btn:hover {
  background-color: #f9d977;
  top: -1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -2px 0 rgba(170, 120, 30, .15), 0 5px 0 #b98c34, 0 10px 18px rgba(150, 105, 20, .28);
}

.btn:active {
  top: 3px;
  box-shadow: inset 0 2px 4px rgba(150, 105, 20, .3), 0 1px 0 #b98c34, 0 2px 4px rgba(150, 105, 20, .2);
}

.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.btn.quiet {
  background-color: #efe4cc;
  background-image: none;
  border-color: #c9b48a;
  color: var(--muted);
  box-shadow: none;
  cursor: default;
  text-shadow: none;
  top: 0;
}

/* Small gold hexagon used as a bullet */

.hex {
  width: 30px;
  height: 34px;
  flex: none;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* Newsletter signup */

.signup .inner { padding: 40px 28px; text-align: center; }

.signup form {
  display: grid;
  gap: 14px;
  max-width: 420px;
  margin: 24px auto 0;
  text-align: left;
}

.signup label {
  display: block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.signup input[type="text"],
.signup input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8c7a0;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.signup input:focus { outline: 2px solid var(--gold-mid); outline-offset: 1px; }

.signup .btn { justify-self: center; margin-top: 8px; }

.visually-hidden {
  position: absolute !important;
  left: -5000px;
}

/* Hidden on screen, still read by screen readers and search engines */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.signup-message {
  margin: 4px 0 0;
  text-align: center;
  font-weight: 700;
  color: var(--teal);
}

.signup-message.error { color: #a8214f; }

/* Home page */

/* Watercolor and gold artwork framing the top, with a bright glow around the heart */
.hero-band {
  background:
    radial-gradient(circle 230px at 50% 185px, rgba(255, 253, 246, .95) 0%, rgba(255, 251, 240, .6) 45%, rgba(255, 251, 240, 0) 100%),
    url("images/hero-watercolor.jpg") center / cover no-repeat,
    #fbedd7;
}

.hero {
  padding-top: 20px;
  padding-bottom: 80px;
  text-align: center;
}

.hero-heart {
  width: 220px;
  height: auto;
  margin: 0 auto 22px;
  filter: drop-shadow(0 8px 16px rgba(120, 60, 30, .22));
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  letter-spacing: .04em;
  margin-bottom: .05em;
  color: #3b1f3f;
}

/* Subtitle flanked by short gold rules */
.hero-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  color: #6a4a5e;
  margin-bottom: 30px;
}

.hero-sub::before,
.hero-sub::after {
  content: "";
  width: 90px;
  height: 2px;
  background: var(--gold);
}

.motto {
  max-width: 760px;
  padding-top: 24px;
  padding-bottom: 24px;
  text-align: center;
}

.motto p {
  margin: 0;
  padding: 26px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.3;
  color: var(--teal);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-image: var(--gold) 1;
}

.about {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: center;
}

.portrait { border-radius: 200px 200px 22px 22px; }
.portrait > .inner { border-radius: 196px 196px 18px 18px; }
.portrait img { width: 100%; height: auto; }

.about p { color: var(--muted); }
.about strong { color: var(--ink); }

.next-up img { width: 100%; height: auto; }

.next-up-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 36px;
  align-items: center;
  padding: 28px 36px 32px;
}

.next-up-body .eyebrow,
.next-up-body h2 { grid-column: 1; margin-bottom: 0; }
.next-up-body h2 { margin-bottom: .2em; }
.next-up-body p:not(.eyebrow) { grid-column: 1; margin: 0; color: var(--muted); }
.next-up-body .btn { grid-column: 2; grid-row: 1 / span 3; }

.testimonials {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.testimonials figure { margin: 0; }

.testimonials .inner { padding: 28px 34px 24px; }

.testimonials blockquote {
  position: relative;
  margin: 0;
  padding-left: 34px;
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.45;
}

.testimonials blockquote::before {
  content: "\201C";
  position: absolute;
  left: -4px;
  top: -14px;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--gold-mid);
}

.testimonials figcaption {
  margin-top: 14px;
  padding-left: 34px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.testimonials figcaption::before { content: "— "; }

@media (max-width: 560px) {
  .hero-sub { white-space: nowrap; gap: 12px; }
  .hero-sub::before, .hero-sub::after { width: 36px; }
}

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; gap: 28px; }
  .portrait { width: 100%; max-width: 300px; margin: 0 auto; }
  .about > div:last-child { text-align: center; }
  .next-up-body { grid-template-columns: 1fr; padding: 24px 22px 28px; text-align: center; }
  .next-up-body .btn { grid-column: 1; grid-row: auto; justify-self: center; margin-top: 18px; }
  .testimonials .inner { padding: 24px 22px 20px; }
  .testimonials blockquote { font-size: 1.18rem; }
}

/* Events page */

.feature { padding-top: 8px; }

.feature-banner { width: 100%; height: auto; }

.feature-body { padding: 36px 40px 40px; text-align: center; }

.lead {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.12rem;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
}

.facts > div {
  padding: 18px 14px;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid #ecdcb6;
}

.facts dt {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 4px;
}

.facts dd { margin: 0; line-height: 1.5; }

.feature-cta { margin-top: 28px; }

html { scroll-behavior: smooth; }

.dates {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: grid;
  gap: 18px;
}

.date-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
}

.date-tile {
  flex: none;
  width: 74px;
  padding: 8px 0;
  border-radius: 12px;
  background: var(--gold);
  color: #3a2410;
  text-align: center;
  line-height: 1.1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 4px rgba(90, 55, 5, .25);
}

.date-tile span {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.date-tile strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 700;
}

.date-info { flex: 1; }
.date-info h3 { margin-bottom: .15em; }
.date-info p { margin: 0; color: var(--muted); line-height: 1.5; }
.date-info em { color: var(--teal); font-style: normal; font-weight: 700; }

.dates-empty { text-align: center; color: var(--muted); }

.expect {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.expect .gold-frame > .inner { height: 100%; padding: 26px 26px 10px; }
.expect .hex { margin-bottom: 14px; }
.expect p { color: var(--muted); }

.details {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px 40px;
  padding: 40px;
}

.detail-list { margin: 0; padding: 0; list-style: none; }

.detail-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 12px;
  height: 14px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.details-contact {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid #ecdcb6;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 760px) {
  .facts, .expect, .details { grid-template-columns: 1fr; }
  .feature-body { padding: 26px 20px 30px; }
  .lead { font-size: 1.02rem; }
  .facts { gap: 10px; }
  .facts > div { padding: 12px 14px; }
  .details { padding: 30px 24px; }
  .date-row { flex-wrap: wrap; gap: 14px 16px; padding: 16px; }
  .date-row .btn { width: 100%; }
}

/* Footer */

.site-footer {
  padding: 36px 0 44px;
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
}

.site-footer a { color: var(--ink); font-weight: 700; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .brand span { display: none; }
}
