/*
Theme Name: Laneline
Description: A bright summer-pool theme for North Springfield: expanded headlines, a lane-rope stripe under the header, a meet-board strip of upcoming events, and stories in a two-column grid.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Author: Team DDA
License: GPL-2.0-or-later
Text Domain: laneline
*/

/* Pool blue, deep-end navy and lane-rope red. One family, Archivo: set wide for headlines, like the numbers on a meet board, and at normal width for reading. */
@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; src: url(assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2"); }

:root {
	--water: #1b6fa8;
	--water-2: #155a8a;
	--deep: #0e2e45;
	--lane: #d2433a;
	--lane-ink: #b3322a;
	--chlorine: #eaf4fa;
	--ink: #14212b;
	--quiet: #4f5e69;
	--rule: #d3e1eb;
	--page: #ffffff;
	--display: "Archivo", "Arial Black", ui-sans-serif, system-ui, sans-serif;
	--body: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--wide: 72rem;
	--narrow: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); font-stretch: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--water-2); text-underline-offset: .18em; text-decoration-thickness: 2px; text-decoration-color: rgba(27, 111, 168, .35); }
a:hover { color: var(--deep); text-decoration-color: var(--lane); }
:focus-visible { outline: 3px solid var(--lane); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; font-weight: 750; line-height: 1.08; margin: 0 0 .5em; color: var(--deep); text-wrap: balance; }
p { margin: 0 0 1em; }

.ll-wrap { width: min(100% - 40px, var(--wide)); margin-inline: auto; }
.ll-narrow { width: min(100% - 40px, var(--narrow)); }
.ll-skip { position: absolute; left: -999px; }
.ll-skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; color: var(--ink); padding: 8px 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The lane rope: a navy line strung with red, white and blue floats */
.ll-rope { height: 12px; background: var(--deep); position: relative; overflow: hidden; }
.ll-rope::before { content: ""; position: absolute; inset: 1px 0; background: repeating-linear-gradient(90deg, var(--lane) 0 60px, #fff 60px 120px, var(--water) 120px 180px, #fff 180px 240px); -webkit-mask: radial-gradient(ellipse 9px 5px at 50% 50%, #000 92%, transparent 100%) 0 0 / 20px 10px repeat-x; mask: radial-gradient(ellipse 9px 5px at 50% 50%, #000 92%, transparent 100%) 0 0 / 20px 10px repeat-x; }

/* Header */
.ll-top { background: #fff; }
.ll-top__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; padding-block: 18px; }
.ll-name { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; color: var(--deep); text-decoration: none; line-height: 1.1; }
.ll-name:hover { color: var(--water); }
.ll-name img { max-height: 46px; width: auto; }
.ll-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.ll-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; padding-block: 6px; border-bottom: 3px solid transparent; }
.ll-nav a:hover { color: var(--water); border-bottom-color: var(--water); }
.ll-top .ll-nav .is-here a { border-bottom-color: var(--lane); }

/* Home hero */
.ll-hero { display: grid; gap: 32px; align-items: center; padding-block: clamp(36px, 6vw, 72px); }
@media (min-width: 900px) { .ll-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }
.ll-hero h1 { font-stretch: 125%; font-weight: 800; font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: .98; letter-spacing: -.015em; margin: 0 0 18px; }
.ll-hero__tag { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.35; font-weight: 700; color: var(--water-2); margin: 0 0 14px; max-width: 32ch; }
.ll-hero__hello { font-size: 1.12rem; color: var(--ink); max-width: 46ch; margin: 0 0 22px; }
.ll-hero__photo { margin: 0; }
.ll-hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center var(--focus, center); border-radius: 18px; }
.ll-hero__photo figcaption { font-size: .9rem; color: var(--quiet); margin-top: 8px; }
.ll-hero__pool { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }
.ll-hero__pool svg { display: block; width: 100%; height: 100%; }

.ll-btn, .ll-signup button, .ll-search button { display: inline-block; font: 700 1rem/1.2 var(--body); background: var(--water); color: #fff; border: 0; border-radius: 10px; padding: 13px 20px; text-decoration: none; cursor: pointer; }
.ll-btn:hover, .ll-signup button:hover, .ll-search button:hover { background: var(--deep); color: #fff; }

/* Coming up: the meet board */
.ll-band { background: var(--chlorine); padding-block: 30px 34px; }
.ll-band__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 16px; }
.ll-band__head h2 { font-size: 1.5rem; margin: 0; }
.ll-band__head a { font-weight: 700; }
.ll-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ll-next li { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 12px; padding: 12px; }
.ll-next a { color: var(--deep); font-weight: 700; text-decoration: none; line-height: 1.3; }
.ll-next a:hover { color: var(--water); text-decoration: underline; }
.ll-tile { flex: none; display: grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: 10px; background: var(--deep); color: #fff; line-height: 1; }
.ll-tile .m { font-size: .78rem; font-weight: 700; color: #bcd9ec; }
.ll-tile .d { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.7rem; margin-top: -8px; }

/* Stories grid */
.ll-recent { padding-top: clamp(36px, 5vw, 56px); }
.ll-section-title { font-size: 1.6rem; margin: 0 0 22px; }
.ll-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px 30px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ll-card { border-top: 4px solid var(--water); padding-top: 16px; }
.ll-card:nth-child(3n+2) { border-top-color: var(--lane); }
.ll-card:nth-child(3n) { border-top-color: var(--deep); }
.ll-card__pic { display: block; margin-bottom: 14px; }
.ll-card__pic img { width: 100%; aspect-ratio: 40 / 26; object-fit: cover; border-radius: 12px; }
.ll-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9rem; color: var(--quiet); margin: 0 0 6px; }
.ll-card__meta a { color: var(--lane-ink); font-weight: 700; text-decoration: none; }
.ll-card h3 { font-size: 1.3rem; margin: 0 0 8px; }
.ll-card h3 a { color: var(--deep); text-decoration: none; }
.ll-card h3 a:hover { color: var(--water); text-decoration: underline; text-decoration-color: var(--lane); }
.ll-card p { color: var(--quiet); margin: 0; }
.ll-more { margin-top: 26px; font-weight: 700; }

/* Signup */
.ll-signup { margin-top: 52px; background: var(--deep); color: #dcecf6; border-radius: 18px; padding: 26px; }
.ll-signup h2 { color: #fff; font-size: 1.35rem; margin-bottom: 4px; }
.ll-signup p { margin-bottom: 14px; }
.ll-signup form { display: flex; flex-wrap: wrap; gap: 8px; }
.ll-signup input, .ll-search input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #b7cad7; border-radius: 10px; background: #fff; }
.ll-signup button { background: var(--lane); }
.ll-signup button:hover { background: #fff; color: var(--deep); }

/* Page headers */
.ll-head { padding-block: clamp(36px, 6vw, 64px) 20px; margin-bottom: 18px; }
.ll-head h1, .ll-story-head h1 { font-stretch: 125%; font-weight: 800; font-size: clamp(2.1rem, 5.2vw, 3.2rem); letter-spacing: -.01em; margin: 0 0 12px; }
.ll-head::after, .ll-story-head::after { content: ""; display: block; width: 140px; height: 8px; margin-top: 20px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--lane) 0 18px, transparent 18px 22px, var(--water) 22px 40px, transparent 40px 44px); }
.ll-head p { color: var(--quiet); margin: 0; max-width: 60ch; }
.ll-head .ll-listings { margin: 18px 0 0; padding: 14px 16px; background: var(--chlorine); border-radius: 12px; color: var(--ink); }
.ll-listings a { font-weight: 700; }
.ll-list { list-style: none; margin: 0; padding: 0; max-width: var(--narrow); }
.ll-event { display: flex; gap: 16px; align-items: flex-start; padding-block: 18px; border-bottom: 1px solid var(--rule); }
.ll-event h3 { font-size: 1.25rem; margin: 2px 0 4px; }
.ll-event h3 a { color: var(--deep); text-decoration: none; }
.ll-event p { margin: 0; color: var(--quiet); }

/* Story and page */
.ll-story-head { padding-block: clamp(36px, 6vw, 64px) 26px; }
.ll-byline { color: var(--quiet); font-size: .97rem; margin: 0; }
.ll-byline a { color: var(--quiet); }
.ll-lede { font-size: 1.3rem; color: var(--ink); margin: 0 0 16px; }
.ll-figure { margin: 0 0 32px; }
.ll-figure img { width: 100%; border-radius: 14px; }
.ll-figure figcaption, .ll-body figcaption { font-size: .9rem; color: var(--quiet); margin-top: 8px; }
.ll-body { font-size: 1.1rem; line-height: 1.7; }
.ll-body h2 { font-size: 1.55rem; margin-top: 1.7em; }
.ll-body h3 { font-size: 1.22rem; margin-top: 1.4em; }
.ll-body ul, .ll-body ol { padding-left: 1.25em; }
.ll-body li { margin-bottom: .4em; }
.ll-body li::marker { color: var(--lane); }
.ll-body blockquote { margin: 1.8em 0; padding: 18px 22px; background: var(--chlorine); border-radius: 14px; font-size: 1.22rem; }
.ll-body blockquote p:last-child { margin: 0; }
.ll-body figure { margin: 1.6em 0; }
.ll-body figure img { border-radius: 12px; }
.ll-body table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ll-body th, .ll-body td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--rule); }
.ll-after { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: .97rem; color: var(--quiet); }
.ll-after p { margin: 0 0 6px; }

/* Event */
.ll-facts { margin: 0 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.ll-facts li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.ll-facts span:first-child { color: var(--quiet); font-weight: 700; }

.ll-pages { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; font-weight: 700; }
.ll-empty { padding-block: 28px 56px; color: var(--quiet); }
.ll-search { display: flex; gap: 8px; margin-top: 16px; }

/* Footer */
.ll-foot { background: var(--deep); color: #c9dcea; margin-top: 88px; }
.ll-foot .ll-rope { background: #091f2f; }
.ll-foot__inner { display: grid; gap: 16px; padding-block: 38px 30px; }
.ll-foot .ll-name { color: #fff; }
.ll-foot .ll-nav a { color: #e1eef7; }
.ll-foot .ll-nav a:hover { color: #fff; border-bottom-color: var(--lane); }
.ll-foot p { margin: 0; font-size: .95rem; max-width: 62ch; }
.ll-foot a { color: #fff; }
.ll-foot small { color: #93b0c4; font-size: .85rem; }
.ll-independent { font-size: .88rem; color: #a9c2d4; }

@media print { .ll-top, .ll-foot, .ll-signup, .ll-rope { display: none; } }

/* ---------- Community Content Studio: guide pages, maps, question box ---------- */
body {
	--ccs-ink: var(--ink); --ccs-muted: var(--quiet); --ccs-line: var(--rule); --ccs-surface: var(--chlorine);
	--ccs-accent: var(--water); --ccs-radius: 12px; --ccs-font-ui: var(--body);
	--ccs-pin-pool: var(--water); --ccs-pin-park: #2f7a4b;
}
.ll-story-head .ccs-crumbs { margin-bottom: .6em; }
.ll-story-head .ccs-reviewed { margin: .6em 0 0; }
.ll-body .ccs-ask h2 { font-size: 1.35rem; }
.ccs-ask button { color: #fff; }
.ll-body .ccs-sources { margin-top: 2.4em; padding-top: 1.1em; border-top: 1px solid var(--rule); font-size: .92rem; color: var(--quiet); }
.ll-body .ccs-sources h2 { font-family: var(--body); font-stretch: 100%; font-size: .95rem; font-weight: 700; color: var(--quiet); margin: 0 0 .4em; }
.ll-body .ccs-sources ul { margin: 0; padding-left: 1.1em; }
.ll-body .ccs-sources a { color: var(--quiet); }
.ll-notes { margin-top: 2.2em; padding-top: 1em; border-top: 1px solid var(--rule); font-size: .92rem; color: var(--quiet); }
.ll-notes a { color: var(--quiet); }
