/* York Irish Association: site styles
   Look follows the committee's "What's the Craic?" poster (Nov 2026):
   deep green, gold lettering, gold frame lines.
   Style things by class name, never by bare element, so one rule
   can't leak into every menu on the site. */

/* Fonts are stored on the site itself (no Google Fonts request), so
   visitors' IP addresses aren't sent to a third party. Both are
   SIL Open Font License fonts, free to self-host. */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-700.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/fraunces-variable.woff2") format("woff2");
}

:root {
  --green-deep: #0F4D2E;
  --green: #136B3E;        /* text-safe green (6:1 on cream) */
  --green-bright: #15824B; /* decoration only */
  --green-soft: #2E9E68;
  --gold: #D99A2B;
  --gold-light: #F2C46D;
  --ink: #1E2C25;
  --muted: #536359;
  --line: #E2DCCB;
  --cream: #FBF6EC;
  --paper: #FFFDF8;
  --tint: #EAF3EC;
  --flag-green: #169B62;
  --flag-orange: #FF883E;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, Arial, sans-serif;
  --radius: 14px;
  --wrap: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 170px; }   /* room for the fixed menu bar */
@media (min-width: 1200px) { html { scroll-padding-top: 110px; } }
@media (max-width: 640px)  { html { scroll-padding-top: 130px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;   /* 19px: large, for older readers */
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

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

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

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

h1, h2, h3 { text-wrap: balance; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--green-deep); color: #fff;
  padding: .6rem 1rem; border-radius: 8px; z-index: 10;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Tricolour strip ---------- */
.tricolour { display: flex; height: 6px; }
.tricolour span { flex: 1; }
.tricolour span:nth-child(1) { background: var(--flag-green); }
.tricolour span:nth-child(2) { background: #fff; }
.tricolour span:nth-child(3) { background: var(--flag-orange); }

/* ---------- Header ---------- */
/* Deep green header: the logo is designed for a dark background (white "YORK") */
.site-header {
  position: sticky;      /* menu bar stays at the top while scrolling */
  top: 0;
  z-index: 50;
  background: var(--green-deep);
  border-bottom: 1px solid rgba(242, 196, 109, .45);
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .55);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: block; line-height: 0; }
.brand-logo { height: 56px; width: auto; }
@media (max-width: 640px) { .brand-logo { height: 40px; } }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .3rem .6rem;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.site-nav a.nav-cta { background: var(--gold); color: #2B1B05; padding: .3rem 1rem; border-radius: 999px; }
.site-nav a.nav-cta:hover { background: #E5AC45; color: #2B1B05; }

/* Phones: keep the fixed bar short. The menu becomes one row you can swipe,
   with a fade on the right to show there's more. */
@media (max-width: 640px) {
  .header-inner { padding-top: 8px; padding-bottom: 6px; gap: 6px; }
  .site-nav { position: relative; width: 100%; }
  .site-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 40px 0 16px;
    scrollbar-width: none;
  }
  .site-nav ul::-webkit-scrollbar { display: none; }
  .site-nav li { flex: none; }
  .site-nav::after {
    content: "";
    position: absolute;
    top: 0; right: -16px; bottom: 0;
    width: 44px;
    background: linear-gradient(to right, rgba(15, 77, 46, 0), var(--green-deep) 75%);
    pointer-events: none;
  }
}

/* ---------- Shared bits ---------- */
.eyebrow {
  margin: 0;
  color: var(--green);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 50px;
  padding: .7rem 1.4rem;
  border: 2px solid var(--green-deep);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--green-deep); color: #fff; }
.btn-primary:hover { background: #0A3A22; border-color: #0A3A22; color: #fff; }
.btn-secondary { background: transparent; color: var(--green-deep); }
.btn-secondary:hover { background: var(--tint); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #2B1B05; }
.btn-gold:hover { background: #E5AC45; border-color: #E5AC45; color: #2B1B05; }
.btn-outline-light { background: transparent; border-color: #F4EFE2; color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-large { min-height: 58px; padding: .9rem 1.8rem; font-size: 1.15rem; }

.section { padding: 72px 0; }
.section-tight { padding: 8px 0 24px; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 660px; margin-bottom: 32px; }
.section-head h2,
.about-grid h2,
.feature h2,
.newsletter h2 {
  margin: .2em 0 .35em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  color: var(--green-deep);
  letter-spacing: -.01em;
}
.section-head p:last-child { margin-bottom: 0; }

.when {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 1rem;
}

/* ---------- Hero ---------- */
/* Deep green with gold lettering and frame lines, after the committee's poster */
.hero {
  position: relative;
  padding: 56px 0 64px;
  background:
    radial-gradient(900px 480px at 80% 0%, rgba(46, 158, 104, .35), transparent 70%),
    radial-gradient(700px 360px at 0% 100%, rgba(217, 154, 43, .14), transparent 70%),
    var(--green-deep);
  color: #EEF3EE;
}
@media (min-width: 720px) {
  .hero { padding: 72px 0 80px; }
  .hero::before,
  .hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(242, 196, 109, .55);
  }
  .hero::before { inset: 12px; }
  .hero::after  { inset: 17px; border-color: rgba(242, 196, 109, .3); }
}
.hero .eyebrow { color: #fff; }
.hero-grid { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
}
.hero h1 {
  margin: .25em 0 .4em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  color: var(--gold-light);
}
.lede { font-size: 1.25rem; max-width: 36ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.upcoming {
  position: relative;
  z-index: 1;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--gold);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55);
}
.upcoming h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--green-deep);
}
.event-list { margin: 0 0 10px; padding: 0; list-style: none; }
.event {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.event:first-child { border-top: 0; }
.date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 64px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--green-deep);
  line-height: 1;
}
.date .d { font-family: var(--serif); font-weight: 700; font-size: 1.65rem; }
.date .m { margin-top: 4px; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.event h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.event h3 a { color: var(--ink); }
.event h3 a:hover { color: var(--green-deep); }
.event p { margin: 2px 0 0; color: var(--muted); font-size: 1rem; }
.date .d-month { font-size: 1.25rem; }
.upcoming-foot {
  margin: 6px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}
.upcoming-foot a { font-weight: 700; }

/* ---------- Featured: Christmas ---------- */
/* Cream panel with a double gold frame, so it doesn't stack green on green under the hero */
.feature {
  display: grid;
  gap: 28px;
  padding: 32px 24px;
  border: 2px solid var(--gold);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px rgba(217, 154, 43, .55);
  color: var(--ink);
}
@media (min-width: 860px) {
  .feature { grid-template-columns: 1.35fr .65fr; align-items: center; padding: 44px; gap: 44px; }
}
.feature-copy > p { max-width: 52ch; }
.section-tight { padding-top: 40px; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 16px;
  margin: 24px 0 0;
}
.fact dt {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fact dd { margin: 2px 0 0; color: var(--green-deep); font-weight: 700; font-size: 1.12rem; line-height: 1.35; }

.ticket {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: 16px;
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(217, 154, 43, .22), transparent 70%),
    var(--green-deep);
  color: #EEF3EE;
  text-align: center;
}
.ticket::before {
  content: "";
  position: absolute;
  left: 18px; right: 18px; top: 10px;
  border-top: 2px dashed rgba(242, 196, 109, .5);
}
.ticket-price {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold-light);
}
.ticket-per { margin: 2px 0 18px; color: #C9DDD0; }
.ticket .btn { width: 100%; }
.ticket-small { margin: 14px 0 0; color: #C9DDD0; font-size: .95rem; line-height: 1.45; }

/* ---------- Regular event cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--green-deep);
}
.card-icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--green-deep);
}
.card > p:not(.when) { margin: 0 0 18px; }

/* ---------- Our year ---------- */
.year {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.year-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  overflow: hidden;
}
.year-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
}
.year-brigid::before    { background: var(--green-soft); }
.year-patrick::before   { background: linear-gradient(90deg, var(--flag-green) 33%, #fff 33% 66%, var(--flag-orange) 66%); }
.year-christmas::before { background: var(--gold); }
.year-patrick { background: #fff; border-color: #CFE3D6; box-shadow: 0 18px 40px -26px rgba(15, 77, 46, .5); }
.month {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--green-deep);
}
.year-item h3 { margin: 10px 0 6px; font-size: 1.25rem; line-height: 1.3; }
.year-item > p:not(.month):not(.when) { margin: 0 0 18px; }
.badge {
  position: absolute;
  top: 22px; right: 20px;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; }
}
.about-grid > div > p:not(.eyebrow) { max-width: 60ch; }
.words {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.words li {
  padding: .25rem .9rem;
  border: 1px solid #CFE3D6;
  border-radius: 999px;
  background: var(--tint);
  color: var(--green-deep);
  font-family: var(--serif);
  font-weight: 500;
}
.pull-quote {
  margin: 0;
  padding: 32px 28px;
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--paper);
}
.pull-quote blockquote { margin: 0; }
.pull-quote blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.3;
  color: var(--green-deep);
}
.pull-quote figcaption { margin-top: 16px; color: var(--muted); font-size: 1rem; }

/* ---------- Get involved ---------- */
.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  counter-reset: role;
}
.role {
  counter-increment: role;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}
.role::before {
  content: counter(role);
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--gold);
  color: #2B1B05;
  font-weight: 700;
}
.role h3 { margin: 0 0 4px; font-size: 1.2rem; }
.role p { margin: 0; }

/* ---------- Support us ---------- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}
.support-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  background: var(--paper);
}
.support-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--green-deep);
}
.support-card > p { margin: 0 0 18px; }
.support-card .btn { margin-top: auto; }
.support-card-dark { background: var(--green-deep); color: #EEF3EE; }
.support-card-dark h3 { color: var(--gold-light); }
.perks { margin: 0 0 22px; padding-left: 1.2em; }
.perks li { margin-bottom: 4px; }
.perks li::marker { color: var(--gold-light); }
.perks-light li::marker { color: #B7791F; }

/* ---------- Newsletter ---------- */
.newsletter {
  padding: 64px 0;
  background: var(--green-deep);
  color: #EEF3EE;
}
.newsletter-grid { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .newsletter-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
}
.newsletter h2 { color: #fff; margin-top: 0; }
.newsletter-grid > div p { max-width: 46ch; margin: 0; }
/* Sign-ups come in by email for now; swap in a newsletter service's form later */
.signup .signup-small { margin: 16px 0 0; max-width: 52ch; color: #C9DDD0; font-size: 1rem; }
.signup-small strong { color: #fff; }
.signup-small a { color: #fff; }

/* ---------- Follow us (social buttons, with words as well as icons) ---------- */
.follow { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(242, 196, 109, .3); }
.follow-title, .footer-follow-title { margin: 0 0 12px; font-weight: 700; color: #fff; }
.follow-title span, .footer-follow-title span { color: var(--gold-light); }
.newsletter .follow .follow-title { margin: 0 0 12px; }
.follow-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.follow-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: .5rem 1.1rem;
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.follow-list a:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.follow-list svg { width: 22px; height: 22px; flex: none; }
.follow-list-small a { min-height: 40px; padding: .3rem .8rem; border-width: 1px; font-size: .95rem; }
.follow-list-small svg { width: 18px; height: 18px; }

/* ---------- Contact ---------- */
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow-wrap: anywhere;
}
.contact-label {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-list a { font-weight: 700; font-size: 1.1rem; }
.contact-alt { color: var(--muted); font-size: 1rem; }
.contact-alt a { font-size: 1rem; }

/* ---------- Join page (the QR code lands here) ---------- */
.join-page { padding: 64px 0 80px; }
.join-inner { max-width: 720px; }
.eyebrow-gold { color: var(--gold-light); }
.join-page h1 {
  margin: .2em 0 .35em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.08;
  color: var(--gold-light);
}
.join-lede { font-size: 1.25rem; max-width: 40ch; margin: 0 0 28px; }
.join-page .join-small { margin-top: 18px; max-width: 52ch; color: #C9DDD0; font-size: 1rem; }
.join-page .join-small strong, .join-page .join-small a { color: #fff; }

/* ---------- Text pages (privacy notice) ---------- */
.prose { max-width: 760px; }
.prose h1 {
  margin: .2em 0 .4em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  line-height: 1.1;
  color: var(--green-deep);
}
.prose h2 {
  margin: 1.8em 0 .4em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--green-deep);
}
.prose-lede { font-size: 1.25rem; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 4px; }
.prose li::marker { color: #B7791F; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0;
  background: #0B3B23;
  color: #C9DDD0;
  font-size: 1rem;
}
.footer-inner {
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1.1fr 1fr 1.5fr .9fr; align-items: start; }
}
.site-footer p { margin: 0; }
.footer-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #fff; }
.footer-meta { font-size: .95rem; }
