/* Design tokens shared by every site in sites/ (see README). Each build puts this in front of its own style.css. */
:root {
  --sign-blue: #1E4B8F; --ink: #16202B; --ink-2: #4A5763; --ink-3: #5E6B76;
  --page: #F5F5F2; --card: #FFFFFF; --line: #DDE0DB; --divider: #E6E8E3; --pill-border: #C9CEC8;
  --sky: #D6E2E2; --sky-top: #C7D7DA; --ridge-far: #2E6E73; --ridge-near: #1C4A50;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Barlow, system-ui, sans-serif }
a { color: inherit }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px }
:is(a, button):focus-visible { outline: 3px solid var(--sign-blue); outline-offset: 2px }

/* Header: the small BYGSTAD sign (links home to bygstad.com) and the page name */
.top { padding: 28px 16px 4px; text-align: center }
.sign { display: inline-block; background: var(--sign-blue); border-radius: 6px; padding: 3px; box-shadow: 0 3px 8px rgba(18, 52, 59, .25); text-decoration: none }
.sign-inner { display: block; border: 2px solid #fff; border-radius: 4px; padding: 4px 12px 3px }
.sign-text { display: block; font: 700 22px/.95 'Barlow Condensed', sans-serif; letter-spacing: .02em; color: #fff; text-transform: uppercase }
.top h1 { margin: 14px 0 0; font-size: 30px; font-weight: 600; line-height: 1.1 }
.tagline { margin: 4px 0 0; font-size: 17px; color: #2C3A44 }
.intro { max-width: 420px; margin: 6px auto 0; font-size: 15px; line-height: 1.45; color: var(--ink-2) }
.intro a { text-decoration: underline; text-decoration-color: var(--pill-border); text-underline-offset: 3px }
.intro a:hover { color: var(--sign-blue); text-decoration-color: currentColor }

/* View switch: pills, as the category filter on bygstad.com (only with JS, since only the calendar uses it) */
html:not(.js) .views { display: none }
.views { margin: 24px 0 12px; display: flex; justify-content: center; gap: 8px }
.views button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--pill-border); background: var(--card); color: var(--ink); font: 600 15px Barlow, sans-serif; cursor: pointer }
.views button[aria-pressed="true"] { background: var(--sign-blue); border-color: var(--sign-blue); color: #fff }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px }
.cal { padding: 14px 12px 12px }

/* FullCalendar, toned down to the site's look */
.fc {
  --fc-border-color: var(--divider);
  --fc-page-bg-color: var(--card);
  --fc-neutral-bg-color: var(--page);
  --fc-today-bg-color: #EAF0F8;
  --fc-event-bg-color: var(--sign-blue);
  --fc-event-border-color: var(--sign-blue);
  --fc-button-text-color: var(--ink);
  --fc-button-bg-color: var(--card);
  --fc-button-border-color: var(--pill-border);
  --fc-button-hover-bg-color: var(--page);
  --fc-button-hover-border-color: var(--pill-border);
  --fc-button-active-bg-color: var(--page);
  --fc-button-active-border-color: var(--pill-border);
  --fc-list-event-hover-bg-color: var(--page);
  --fc-now-indicator-color: #C0392B;
  font-size: 15px;
}
.fc .fc-toolbar.fc-header-toolbar { margin-bottom: 12px; gap: 8px }
.fc .fc-toolbar-title { font-size: 21px; font-weight: 600 }
.fc .fc-toolbar-title::first-letter { text-transform: uppercase }
.fc .fc-button { min-height: 40px; padding: 0 12px; border-radius: 999px; font: 600 15px Barlow, sans-serif; box-shadow: none !important }
.fc .fc-button-group > .fc-button { border-radius: 0 }
.fc .fc-button-group > .fc-button:first-child { border-radius: 999px 0 0 999px }
.fc .fc-button-group > .fc-button:last-child { border-radius: 0 999px 999px 0 }
.fc .fc-button:disabled { opacity: .5 }
.fc .fc-button .fc-icon { font-size: 1.2em; vertical-align: -0.15em }
.fc .fc-button-primary:focus-visible { outline: 3px solid var(--sign-blue); outline-offset: 2px }
.fc .fc-col-header-cell-cushion { padding: 6px 4px; font-weight: 600; color: var(--ink-2); text-decoration: none }
.fc .fc-col-header-cell-cushion::first-letter { text-transform: uppercase }
.fc .fc-daygrid-day-number, .fc .fc-list-day-text, .fc .fc-list-day-side-text { color: var(--ink); text-decoration: none }
.fc .fc-list-day-text::first-letter { text-transform: uppercase }
.fc .fc-daygrid-week-number, .fc .fc-timegrid-axis-cushion { font-size: 12px; color: var(--ink-3); background: none; text-decoration: none }
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number { font-weight: 700; color: var(--sign-blue) }
.fc .fc-event { cursor: pointer; font-size: 13px; border-radius: 4px }
.fc .fc-daygrid-event { padding: 1px 3px }
.fc .fc-daygrid-more-link { font-size: 13px; color: var(--ink-2) }
.fc .fc-list { border: 0 }
.fc .fc-list-day-cushion { padding: 10px 12px }
.fc .fc-list-event, .fc .fc-list-event td { font-size: 15px }
.fc .fc-list-event td { padding: 12px }
.fc .fc-list-event-title { font-weight: 600 }
.fc .fc-list-event-time { color: var(--ink-2); font-variant-numeric: tabular-nums }
.fc .fc-list-empty { background: none; padding: 32px 0; color: var(--ink-2) }
.fc .fc-timegrid-slot-label-cushion { font-size: 12px; color: var(--ink-3) }
/* Narrow screens: month cells fit only a word, so drop the time there (it's in the dialog) */
@media (max-width: 639px) {
  .cal { padding: 10px 6px 6px; margin: 0 -8px }
  .fc .fc-toolbar.fc-header-toolbar { padding: 0 6px }
  .fc .fc-toolbar-title { font-size: 19px }
  .fc .fc-daygrid-event .fc-event-time { display: none }
  .fc .fc-event { font-size: 12px }
}

/* Without JS: a plain list of what's coming up */
.fallback { margin: 24px 0 0; padding: 0; list-style: none }
.fallback li { padding: 12px 16px; line-height: 1.4 }
.fallback li + li { border-top: 1px solid var(--divider) }
.fallback .when { display: block; font-size: 14px; color: var(--ink-2) }
.fallback .when::first-letter { text-transform: uppercase }

/* Subscribe: the .ics feed into the reader's own calendar */
.subscribe { max-width: 560px; margin: 24px auto 0; padding: 20px 18px; text-align: center }
.subscribe h2 { margin: 0; font-size: 20px; font-weight: 600 }
.subscribe p { margin: 6px 0 0; font-size: 16px; line-height: 1.45; color: #2C3A44 }
.subscribe-buttons { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--sign-blue); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none }
.button:hover { background: #163A70 }
.subscribe .feed { margin-top: 16px; font-size: 14px; color: var(--ink-2) }
.copy-row { margin-top: 6px; display: flex; gap: 8px }
.copy-row input { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border: 1px solid var(--pill-border); border-radius: 8px; background: var(--page); color: var(--ink); font: 14px Barlow, sans-serif }
.copy { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--pill-border); background: var(--card); color: var(--ink); font: 600 15px Barlow, sans-serif; cursor: pointer }
.copy:hover { background: var(--page) }
html:not(.js) .copy { display: none }

/* Where the events come from, and how to send more */
.about { max-width: 560px; margin: 28px auto 0; padding: 0 8px; font-size: 16px; line-height: 1.5; text-align: center; color: #2C3A44 }
.about h2 { margin: 0 0 6px; font: 700 15px 'Barlow Condensed', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2) }
.about p { margin: 0 0 6px }
.about a, footer a { text-decoration: underline; text-decoration-color: var(--pill-border); text-underline-offset: 3px }
.about a:hover, footer a:hover { color: var(--sign-blue); text-decoration-color: currentColor }

footer { padding: 40px 8px 32px; text-align: center; font-size: 14px; line-height: 1.5; color: #2C3A44 }

/* Event details */
.event { width: min(480px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 14px; color: var(--ink); box-shadow: 0 12px 40px rgba(18, 52, 59, .3) }
.event::backdrop { background: rgba(22, 32, 43, .45) }
.event-body { position: relative; padding: 20px 20px 22px }
.event h2 { margin: 0 44px 14px 0; font-size: 24px; font-weight: 600; line-height: 1.2 }
.event .close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink-2); display: flex; align-items: center; justify-content: center; cursor: pointer }
.event .close:hover { background: var(--page); color: var(--ink) }
.event dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 16px; line-height: 1.45 }
.event dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px }
.event dd { margin: 0 }
.event dd a { color: var(--sign-blue); font-weight: 600 }
.event-desc { margin: 14px 0 0; font-size: 16px; line-height: 1.5; white-space: pre-line }
.event-desc:empty { display: none }
