/* Arrochar Ready — site styles. Plain CSS, no build step. */

/* Barlow, self-hosted (SIL Open Font License, see fonts/OFL.txt). Latin subset only. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.81419bf5abb5.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-italic.f47df445d5cb.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.a1e2a2d7d4c0.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.15481e4eab6d.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-latin-800-normal.8a60890dcf69.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/barlow-latin-900-normal.54fe32444ec1.woff2") format("woff2"); }

:root {
  --loch: #0f4c5c;
  --loch-dark: #0a3540;
  --hill: #2f6b3a;
  --ink: #1b1f23;
  --muted: #555e66;
  --paper: #ffffff;
  --mist: #f2f5f6;
  --line: #d5dcdf;
  --focus: #ffbf47;
  --accent: #f0c36a; /* bracken gold: highlights on the header photo */

  --info-bg: #e7f1fb;
  --info-ink: #0b3d6b;
  --warning-bg: #fff4d6;
  --warning-ink: #5c3d00;
  --warning-edge: #d99a00;
  --danger-bg: #b3261e;
  --danger-ink: #ffffff;

  --radius: 6px;
  --max: 68rem;
  font-size: 112.5%; /* 18px base: easier to read */
}

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

body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--loch); text-underline-offset: 0.15em; }
a:hover { color: var(--loch-dark); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
}

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2rem; margin: 1.5rem 0 0.75rem; }
h2 { font-size: 1.45rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.25rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--focus); color: var(--ink); padding: 0.5rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* --- Alerts banner --------------------------------------------------------- */

.alert { padding: 0.75rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.15); }
.alert p { margin: 0.15rem 0; }
.alert__labels { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.alert__severity, .alert__category {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.1rem 0.45rem; border-radius: 3px; border: 1px solid currentColor;
}
.alert__category { font-weight: 600; border-style: dashed; }
.alert__title { font-weight: 700; font-size: 1.1rem; }
.alert__meta { font-size: 0.85rem; opacity: 0.9; display: flex; flex-wrap: wrap; gap: 0 0.9rem; }
.alert--info { background: var(--info-bg); color: var(--info-ink); }
.alert--warning { background: var(--warning-bg); color: var(--warning-ink); border-left: 6px solid var(--warning-edge); }
.alert--emergency { background: var(--danger-bg); color: var(--danger-ink); }

/* --- Header --------------------------------------------------------------- */

.site-header { position: relative; isolation: isolate; overflow: hidden; background: var(--loch); color: #fff; }

/* Optional background photo (Settings > Site settings), darkened so white text stays readable. */
.site-header--photo picture { position: absolute; inset: 0; z-index: -2; }
.site-header__photo { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.site-header--photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 30, 38, 0.82) 0%, rgba(6, 30, 38, 0.55) 55%, rgba(6, 30, 38, 0.35) 100%),
    linear-gradient(180deg, rgba(6, 30, 38, 0.35) 0%, rgba(6, 30, 38, 0) 40%);
}
.site-header--photo .site-header__inner { padding-top: 1rem; padding-bottom: 1rem; }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand-block { display: flex; flex-direction: column; }
.brand { color: #fff; font-weight: 800; font-size: 1.35rem; text-decoration: none; line-height: 1.2; }
.tagline { margin: 0.1rem 0 0; font-size: 0.85rem; color: #d6ebe6; }
.brand span { color: var(--accent); }
.brand:hover { color: #fff; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; padding: 0.25rem 0; }
.site-nav a:hover { text-decoration: underline; color: #fff; }
.site-nav__plan { background: #fff; color: var(--loch) !important; padding: 0.3rem 0.85rem !important; border-radius: 999px; }

.site-search { margin-left: auto; display: flex; gap: 0.25rem; }
.site-search input { padding: 0.4rem 0.8rem; border: 0; border-radius: 999px; font: inherit; font-size: 0.9rem; width: 10rem; }
.site-search button { font: inherit; font-size: 0.9rem; padding: 0.35rem 0.6rem; border: 1px solid #fff; background: rgba(255, 255, 255, 0.12); color: #fff; border-radius: 999px; cursor: pointer; }

@media (max-width: 40rem) {
  .site-search { margin-left: 0; width: 100%; }
  .site-search input { flex: 1; }
}

/* Home page: tall photo header with the site name as the page heading. */
.site-header--hero .site-header__inner { justify-content: flex-end; }
.site-header__hero { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.site-header__label {
  margin: 0 0 0.4rem; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent);
}
.site-title {
  margin: 0; font-size: clamp(2.4rem, 7vw, 4.25rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.site-title span { color: var(--accent); }
.site-header__tagline { margin: 0.75rem 0 0; max-width: 34rem; font-size: 1.15rem; color: #eef6f4; }
/* Where the photo was taken: quiet white text with a map pin, like a photo credit. */
.site-header__caption {
  position: absolute; right: 1.1rem; bottom: 0.9rem; margin: 0;
  display: flex; align-items: center; gap: 0.35rem;
  color: rgba(255, 255, 255, 0.88); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.site-header__caption::before {
  content: ""; width: 0.8rem; height: 0.8rem; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 48rem) {
  .site-header__hero { padding-top: 3.5rem; padding-bottom: 4.5rem; }
}
@media (max-width: 40rem) {
  .site-header__caption { display: none; }
}

/* List and general pages: a medium photo strip with the page title over it. */
.site-header__page { padding-top: 1.75rem; padding-bottom: 2.25rem; }
.page-title {
  margin: 0; color: #fff; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.site-header__intro { margin: 0.6rem 0 0; max-width: 40rem; font-size: 1.1rem; color: #eef6f4; }
@media (min-width: 48rem) {
  .site-header__page { padding-top: 2.5rem; padding-bottom: 3rem; }
}

/* --- Main content --------------------------------------------------------- */

main { padding-bottom: 3rem; min-height: 50vh; }
main > :first-child { margin-top: 1.5rem; }

.lead { font-size: 1.15rem; color: var(--muted); }
.meta, .card__meta, .breadcrumb { color: var(--muted); font-size: 0.9rem; }
.breadcrumb { margin: 1.25rem 0 0; }

.prose { max-width: 42rem; }
.lead-image, .content-image { margin: 1.5rem 0; }

.button {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  padding: 0.55rem 1.1rem; border-radius: var(--radius);
  border: 2px solid var(--loch); background: #fff; color: var(--loch); text-decoration: none;
}
.button:hover { background: var(--mist); }
.button--primary { background: var(--loch); color: #fff; }
.button--primary:hover { background: var(--loch-dark); color: #fff; }
.button--wide { width: 100%; margin-bottom: 0.75rem; }

.messages { list-style: none; padding: 0; margin: 1rem 0; }
.message { padding: 0.75rem 1rem; border-radius: var(--radius); background: var(--info-bg); }

/* Home */
.plan-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--mist); border-left: 6px solid var(--hill); padding: 1.25rem 1.5rem; border-radius: var(--radius); margin: 1rem 0 2rem;
}
.plan-cta h2 { margin: 0 0 0.25rem; }
.plan-cta p { margin: 0; }
/* News and Events: stacked on phones, side by side on wider screens. */
.home-columns { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.home-columns h2 { margin-top: 0; }
/* Faint rounded panels around "Community Updates" and "Upcoming Events". */
.home-columns > section {
  border: 1px solid #e3e9eb; border-radius: 14px; padding: 1.25rem 1.25rem 0.25rem;
}
@media (min-width: 48rem) {
  .home-columns > section { padding: 1.5rem 1.5rem 0.5rem; }
}
@media (min-width: 48rem) {
  .home-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Cards */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.card-list { display: grid; gap: 1rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; margin-bottom: 1rem; }
.card-grid .card, .card-list .card { margin-bottom: 0; }
.card__body { padding: 0.9rem 1rem; }
/* Same look whether the card title is an h2 (list pages) or h3 (home page). */
.card__title { font-size: 1.15rem; margin: 0 0 0.25rem; }
.card__more { margin-top: 0.5rem !important; font-weight: 600; }
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.1rem 0.5rem; border-radius: 999px; margin: 0 0 0.35rem !important;
}
.tag--pinned { background: var(--loch); color: #fff; }
.card__body p { margin: 0.25rem 0; }
.card--event { display: flex; }
.card__repeat { font-weight: 600; }
.event-dates { margin: 0; padding-left: 1.1rem; }
.event-dates__cancelled { color: var(--muted); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.05rem 0.45rem; border-radius: 3px; }
.tag--cancelled { background: var(--danger-bg); color: var(--danger-ink); }
.card__cancelled { margin: 0.35rem 0; font-size: 0.95rem; }
.card__date {
  flex: 0 0 4.5rem; background: var(--loch); color: #fff; text-align: center;
  display: flex; flex-direction: column; justify-content: center; padding: 0.5rem;
}
.card__day { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.card__month { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }

/* Filters, tabs, pagination */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 1rem 0 1.5rem; }
.tabs a {
  padding: 0.25rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none;
}
.tabs a[aria-current] { background: var(--loch); border-color: var(--loch); color: #fff; }
.pagination { display: flex; gap: 1.5rem; align-items: center; margin: 2rem 0; }

/* Event details */
.event-details { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 1rem 0; }
.event-details dt { font-weight: 700; }
.event-details dd { margin: 0; }

/* Callouts */
.callout { padding: 0.9rem 1.1rem; border-radius: var(--radius); margin: 1.25rem 0; border-left: 6px solid; }
.callout p { margin: 0.25rem 0; }
.callout--info { background: var(--info-bg); border-color: var(--info-ink); }
.callout--warning { background: var(--warning-bg); border-color: var(--warning-edge); }
.callout--danger { background: #fdecea; border-color: var(--danger-bg); }

/* Documents */
.document-link { margin: 1rem 0; padding: 0.75rem 1rem; background: var(--mist); border-radius: var(--radius); }
.document-link a { font-weight: 600; }
.document-link__meta { color: var(--muted); font-size: 0.85rem; }
.document-link p { margin: 0.25rem 0 0; }

/* Emergency plan */
.plan__updated { font-size: 1.05rem; }
.contacts__list { list-style: none; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.contact { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1rem; height: 100%; }
.contact p { margin: 0.1rem 0; }
.contact__name { font-weight: 700; }
.contact__role { font-weight: 400; color: var(--muted); }
.contact__phone a { font-size: 1.2rem; font-weight: 700; }
.contact__notes { color: var(--muted); font-size: 0.9rem; }
.print-only { display: none; }

/* Search */
.search-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.search-form label { width: 100%; font-weight: 600; }
.search-form input { flex: 1; min-width: 12rem; padding: 0.5rem; font: inherit; border: 2px solid var(--ink); border-radius: var(--radius); }
.search-results li { margin-bottom: 1rem; }
.search-results p { margin: 0.25rem 0; color: var(--muted); }

/* Sign in */
.signin { max-width: 26rem; margin: 2rem auto; }

/* Footer */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding: 1.5rem 0; font-size: 0.9rem; }
.site-footer__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* --- Print (mainly the Emergency Plan) ----------------------------------- */

@media print {
  :root { font-size: 11pt; }
  .site-header, .site-footer, .alerts, .skip-link, .no-print, .messages, .breadcrumb { display: none !important; }
  .print-only { display: block; }
  body { color: #000; }
  main { padding: 0; }
  .container { max-width: none; padding: 0; }
  .prose { max-width: none; }
  a { color: #000; text-decoration: none; }
  h1 { margin-top: 0; }
  h2 { break-after: avoid; }
  .contacts__list { grid-template-columns: 1fr 1fr; }
  .contact, .callout, .document-link { break-inside: avoid; }
  .contact__phone a { font-size: 12pt; }
  .callout { border: 1px solid #000; border-left-width: 4pt; background: none; }
  .plan__print-footer { margin-top: 2rem; font-size: 9pt; border-top: 1px solid #000; padding-top: 0.5rem; }
}
