/* Readable layouts from narrow phones to large desktop screens. */
html { -webkit-text-size-adjust: 100%; }
body { overflow-wrap: break-word; }
.site-header { padding-inline: clamp(16px, 3vw, 48px); gap: 18px; }
.site-header .brand { min-width: 0; }
.site-header nav { gap: clamp(12px, 1.4vw, 22px); }
.site-header nav a, .site-header nav button { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.site-header .mobile-join { display: none; }
.search-toggle, .menu-toggle, .dialog-close { min-width: 44px; min-height: 44px; }
.search-toggle { display: grid; place-items: center; flex-shrink: 0; }
.photo img { position: absolute; inset: 0; }
.event-info, .event-header > div, .card-body, .story-copy, .join-copy { min-width: 0; }
.event-meta { overflow-wrap: anywhere; }
.section-heading { flex-wrap: wrap; }
.section-heading h2 { max-width: 100%; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; white-space: normal; }
.footer-main nav { flex-wrap: wrap; }
.footer-main nav a, .footer-main nav button { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.social-links a, .social-links button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.footer-main { flex-wrap: wrap; row-gap: 20px; }
.footer-bottom { flex-wrap: wrap; }
.footer-bottom p, .footer-bottom p:last-child { font-size: 12px; }
dialog { max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
#dialog-content { overflow-wrap: anywhere; }
.search-field { font-size: 16px; }

@media (max-width: 1199px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; min-height: 80px; padding: 12px 4%; gap: 8px; }
  .site-header .brand { gap: 10px; }
  .site-header .brand img { width: 52px; flex-shrink: 0; }
  .site-header .brand strong { font-size: 18px; }
  .site-header .brand span span { font-size: 14px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 10px; font-size: 15px; background: transparent; }
  .menu-toggle span { margin: 0; }
  .header-join { display: none; }
  .search-toggle { margin: 0; }
  .search-icon { width: 20px; height: 20px; border-width: 2px; }
  .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; width: 100%; margin: 0; padding: 12px 4% 20px; background: var(--cream); box-shadow: 0 10px 16px #10171c12; max-height: calc(100dvh - var(--header-offset, 100px)); overflow-y: auto; overscroll-behavior: contain; }
  .site-header nav.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
  .site-header nav a, .site-header nav button { width: 100%; min-height: 48px; padding: 10px 12px; font-size: 16px; white-space: normal; text-align: left; }
  .site-header .mobile-join { display: inline-flex; width: auto; justify-self: start; margin-top: 6px; padding-inline: 24px; }
  .introduction p, .event-info > p, .story-copy > p, .join-copy p { font-size: 16px; line-height: 1.55; }
  .event-info { padding: 24px; }
  .event-title { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
  .event-meta { font-size: 14px; gap: 10px; }
  .event-header { gap: 16px; padding-right: 0; }
  .date-badge { flex: 0 0 58px; padding: 9px 5px; }
  .date-badge span { font-size: 13px; }
  .date-badge strong { font-size: 38px; }
  .event-flower { display: block; position: static; width: 48px; height: 58px; align-self: flex-end; margin: -8px -8px 8px 0; }
  .event-info > .button, .story-copy .button, .join-copy .button { min-height: 48px; font-size: 16px; padding: 12px 24px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .card-body { padding: 18px; gap: 8px; }
  .card-body strong { font-size: 18px; }
  .card-body > span { font-size: 16px; }
  .story { grid-template-columns: 1fr; gap: 24px; padding-block: 40px; }
  .story-copy > p { max-width: 65ch; margin-bottom: 20px; }
  .story .short-line { margin: 16px 0 20px; }
  .story-gallery { min-height: 320px; gap: 8px; }
  .join-band { padding-block: 36px; }
  .join-copy { width: 64%; }
  .join-art { width: 18%; }
  .join-art { flex-direction: column; gap: 16px; }
  .join-art .handwritten { display: block; font-size: clamp(16px, 2vw, 26px); text-align: center; }
  .join-copy h2 { font-size: clamp(25px, 3vw, 36px); }
  .community-art-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
  .community-art-strip img { height: 72px; }
  .footer-main nav { order: 3; width: 100%; justify-content: flex-start; gap: 8px 24px; }
  .footer-brand strong { font-size: 16px; }
  .footer-brand span span { font-size: 13px; }
  .footer-brand img { width: 52px; }
  .social-links { gap: 8px; margin-left: auto; }
}

@media (max-width: 760px) {
  .content-width, .community { width: calc(100% - 40px); }
  .event-feature { grid-template-columns: 1fr; }
  .event-feature > .photo { aspect-ratio: 16 / 9; min-height: 0; }
  .introduction { padding-block: 32px; }
  .introduction h2 { font-size: clamp(27px, 5.2vw, 40px); line-height: 1.15; }
  .introduction p { white-space: normal; }
  .section-heading { align-items: center; gap: 0 14px; margin-bottom: 12px; }
  .section-heading h2 { font-size: clamp(19px, 3.4vw, 26px); }
  .community { padding-top: 32px; }
  .story h2 { font-size: 42px; }
  .join-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding: 38px 6% 30px; }
  .join-copy { grid-column: 1 / -1; grid-row: 1; width: 100%; padding: 0; }
  .join-art { position: static; width: 100%; pointer-events: none; transform: none; align-items: center; justify-content: center; }
  .join-art img { width: 76px; height: 95px; object-fit: contain; margin: 0; transform: none; }
  .join-art .handwritten { display: block; font-size: 21px; }
  .join-copy p { white-space: normal; margin: 16px 0 24px; }
}

/* On phones, the same welcome becomes live, scalable text and full-size links. */
@media (max-width: 900px) {
  .site-header .brand img { width: 44px; }
  .site-header .brand strong { font-size: 15px; letter-spacing: -.3px; }
  .site-header .brand span span { font-size: 12px; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; aspect-ratio: auto; min-height: 0; background: #d3222d; }
  .hero .hero-copy { position: relative; inset: auto; grid-area: 1 / 1; width: 100%; max-width: none; min-height: 0; padding: 30px 6% 112px; background: #d3222d; z-index: 2; }
  .hero .hero-copy::after { content: none; }
  .hero h1 { font-size: clamp(48px, 11.6vw, 80px); line-height: 1.03; letter-spacing: -.06em; margin: 0 0 16px; }
  .hero .hero-subtitle { font-size: clamp(20px, 4.5vw, 28px); line-height: 1.25; margin: 0 0 16px; }
  .hero .hero-description { font-size: 16px; line-height: 1.5; max-width: 36ch; white-space: normal; margin: 0 0 24px; }
  .hero .hero-actions { position: static; width: auto; height: auto; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
  .hero .hero-actions .button { flex: 0 1 auto; min-width: 124px; min-height: 48px; padding: 12px 24px; font-size: 16px; color: #fff; }
  .hero .hero-actions .button.dark { background: #061820; border: 1.5px solid #061820; }
  .hero .hero-actions .button.outline-light { background: transparent; border: 1.5px solid #fff; }
  .hero .hero-red { display: none; }
  .hero > .illustration, .hero > .handwritten { display: block; position: relative; grid-area: 2 / 1; inset: auto; align-self: start; z-index: 3; pointer-events: none; }
  .hero .hero-kangaroo { width: clamp(100px, 28%, 165px); height: auto; justify-self: end; margin: -72px 17% 0 0; transform: rotate(-5deg); }
  .hero .hero-rugby { width: clamp(62px, 18%, 108px); height: auto; justify-self: end; margin: -146px 6% 0 0; transform: rotate(-15deg); }
  .hero .hero-bottlebrush { width: clamp(74px, 23%, 142px); height: auto; justify-self: end; margin: -26px -5% 0 0; transform: rotate(-16deg); }
  .hero .hero-daffodil { width: clamp(60px, 18%, 112px); height: auto; justify-self: start; margin: 24px 0 0 -5%; transform: rotate(10deg); }
  .hero .hero-note { justify-self: start; margin: -80px 0 0 8%; font-size: clamp(18px, 4vw, 25px); color: #fff4e5; }
  .hero .sydney-note { justify-self: start; align-self: end; margin: 0 0 58px 7%; font-size: clamp(22px, 5vw, 32px); color: var(--cream); }
  .story-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; min-height: 0; }
  .story-gallery .gallery-item { grid-column: auto; aspect-ratio: 4 / 3; }
  .story-gallery .gallery-item:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .community-art-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
  .community-art-strip img { height: 64px; }
  .site-footer { padding: 28px 20px; }
  .footer-main { gap: 18px; }
  .footer-main nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
  .footer-bottom { display: block; line-height: 1.6; }
  dialog { padding: 48px 20px 24px; }
  #dialog-content h2 { font-size: 30px; }
  #dialog-content .dialog-actions > .button { width: 100%; min-height: 48px; }
}

@media (max-width: 420px) {
  .site-header { padding: 10px 12px; column-gap: 2px; }
  .site-header .brand { gap: 7px; }
  .site-header .brand img { width: 38px; }
  .site-header .brand strong { font-size: 13px; }
  .site-header .brand span span { font-size: 10px; }
  .menu-toggle { font-size: 13px; padding: 8px; }
  .menu-toggle span { display: inline-block; }
  .content-width, .community { width: calc(100% - 32px); }
  .card-grid { grid-template-columns: 1fr; gap: 18px; }
  .community-card > .photo { aspect-ratio: 16 / 9; }
  .event-info { padding: 22px 18px; }
  .event-header { gap: 12px; }
  .event-title { font-size: 27px; }
  .join-copy { padding-inline: 2%; }
  .community-art-strip { gap: 20px 12px; }
  .community-art-strip img { height: 52px; }
  .footer-brand strong { font-size: 14px; }
  .footer-brand span span { font-size: 12px; }
  .social-links { margin-left: 0; }
}

@media (max-width: 350px) {
  .site-header .brand strong { max-width: 125px; line-height: 1.15; }
  .site-header .brand span span { max-width: 125px; line-height: 1.2; }
  .hero .hero-actions .button { flex: 1 1 100%; }
}

@media (hover: none) {
  .button:hover, .community-card:hover { transform: none; }
}

/* Consistent uppercase titles, with room for the longer welcome heading. */
h1, h2, h3, h4, .brand strong, .brand > span > span, nav a, nav button, .card-body strong, .search-result strong { text-transform: uppercase; }
.hero h1 { font-size: clamp(48px, 9.2vw, 132px); letter-spacing: -.055em; }
.site-header .brand { flex-shrink: 1; }
.site-header .brand img { flex-shrink: 0; }
.site-header .brand strong { font-size: clamp(14px, 1.45vw, 21px); }
.site-header .brand > span > span { font-size: clamp(11px, 1.05vw, 15px); }
.event-feature, .event-info { background: #fff; }
a.community-card { text-decoration: none; color: inherit; }

/* The five main navigation choices have separate, keyboard-accessible submenus. */
.nav-group { position: relative; }
.nav-parent { display: flex; align-items: center; gap: 0; }
.site-header nav .nav-submenu-toggle { display: inline-flex; justify-content: center; width: 32px; min-width: 32px; min-height: 44px; padding: 0; font-size: 20px; }
.nav-submenu-toggle span { transition: transform .18s; }
.nav-submenu-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.site-header .nav-submenu { position: absolute; top: 100%; left: -14px; min-width: 190px; margin: 0; padding: 8px; list-style: none; background: var(--cream); border: 1px solid #dce1d5; border-radius: 12px; box-shadow: 0 12px 28px #122e241c; z-index: 35; }
.site-header nav .nav-submenu a, .site-header nav .nav-submenu button { display: flex; width: 100%; min-height: 44px; padding: 10px 12px; font-size: 13px; border-radius: 6px; white-space: normal; text-align: left; }
.site-header nav .nav-submenu a:hover, .site-header nav .nav-submenu button:hover { background: #e7edde; }

/* Society information stays below the existing story and original-site photographs. */
.story { align-items: start; }
.story-gallery { height: clamp(290px, 27vw, 390px); }
.story-details { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.governance-block { min-width: 0; padding: clamp(22px, 2.8vw, 38px); background: #fff; border-radius: 14px; border-top: 3px solid var(--green); }
.governance-block h3 { font: normal clamp(26px, 2.5vw, 36px)/1.1 var(--serif); margin: 0 0 18px; letter-spacing: -.025em; }
.governance-block p { font-size: 16px; line-height: 1.65; }
.committee-list { margin: 20px 0 0; }
.committee-list > div { display: grid; grid-template-columns: minmax(120px, .9fr) 1.1fr; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid #e6e9e1; }
.committee-list > div:last-child { border-bottom: 0; }
.committee-list dt { font-size: 12px; text-transform: uppercase; color: var(--green); letter-spacing: .04em; }
.committee-list dd { margin: 0; font-size: 17px; }
.objectives-list { padding-left: 24px; margin: 0; }
.objectives-list li { padding: 0 0 14px 7px; line-height: 1.6; }
.objectives-list li::marker { color: var(--red); font-weight: 700; }
.constitution-block { grid-column: 1 / -1; border-color: var(--red); }
.constitution-block p { max-width: 90ch; }
.constitution-block .button { margin-top: 12px; }
.resource-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.resource-list a { display: block; padding: 18px; background: #fff; border-radius: 9px; text-decoration: none; border: 1px solid #e0e5da; }
.resource-list a:hover { border-color: var(--green); }
.resource-list strong { display: block; color: var(--green); text-transform: uppercase; }
.resource-list span { display: block; font-size: 14px; margin-top: 8px; }

@media (max-width: 1199px) {
  .site-header .brand strong { font-size: 17px; }
  .site-header .brand > span > span { font-size: 12px; }
  .site-header nav.is-open { grid-template-columns: 1fr; gap: 2px; }
  .nav-parent > a { flex: 1; }
  .site-header nav .nav-submenu-toggle { width: 48px; min-width: 48px; min-height: 48px; }
  .site-header .nav-submenu { position: static; min-width: 0; margin: 0 0 8px 12px; padding: 2px 0 2px 12px; border: 0; border-left: 2px solid var(--red); border-radius: 0; box-shadow: none; }
  .site-header nav .nav-submenu a, .site-header nav .nav-submenu button { min-height: 48px; font-size: 14px; }
  .story-gallery { height: auto; min-height: 320px; }
}
@media (max-width: 760px) {
  .story-details { grid-template-columns: 1fr; margin-top: 4px; }
  .governance-block { padding: 24px 22px; }
}
@media (max-width: 900px) {
  .hero h1 { font-size: clamp(36px, 10.2vw, 68px); }
  .site-header .brand strong { font-size: 14px; letter-spacing: -.3px; }
  .site-header .brand > span > span { font-size: 10px; }
  .story-gallery { min-height: 0; }
  .hero-wave { -webkit-clip-path: var(--wave-shape); }
}
@media (max-width: 420px) {
  .site-header .brand strong { font-size: 12px; }
  .site-header .brand > span > span { font-size: 9px; }
  .committee-list > div { grid-template-columns: minmax(100px, .85fr) 1.15fr; gap: 10px; }
  .committee-list dd { font-size: 16px; }
  .resource-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-submenu-toggle span { transition: none; }
}

@media (min-width: 901px) {
  .hero .hero-copy { padding-top: 2.6%; }
  .hero h1 { margin-bottom: 8px; }
  .hero .hero-subtitle { font-size: clamp(22px, 2.6vw, 36px); line-height: 1.18; margin: 0 0 14px; }
  .hero .hero-description { font-size: clamp(14px, 1.65vw, 23.5px); line-height: 1.2; max-width: 70%; margin: 0 0 18px; }
  .hero .hero-actions { margin-left: 0; gap: 18px; }
  .hero .hero-actions .button { min-width: clamp(110px, 15vw, 216px); min-height: 44px; padding: 10px 24px; }
}
