/* Fred's Rides — forest green & champagne */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Black.woff") format("woff"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
    --fr-bg: #F6F5F1;
    --fr-ink: #16201A;
    --fr-green: #1F3B2D;
    --fr-champagne: #D9C4A0;
    --fr-eyebrow: #7A5C2E;
    --fr-border: #E2DED4;
    --fr-card: #EFEBE1;
    --fr-text: #3D4740;
    --fr-radius: 14px;
    --fr-width: 1200px;
    --fr-narrow: 720px;
    --fr-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --fr-display: "Inter Display", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--fr-bg);
    color: var(--fr-text);
    font-family: var(--fr-font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, iframe, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--fr-green); }
h1, h2, h3, h4 { font-family: var(--fr-display); color: var(--fr-ink); line-height: 1.1; margin: 0 0 .5em; }

.fr-container { width: 100%; max-width: var(--fr-width); margin: 0 auto; padding: 0 24px; }
.fr-narrow { width: 100%; max-width: var(--fr-narrow); margin-left: auto; margin-right: auto; padding: 0 24px; }
.fr-main { min-height: 60vh; }

/* Buttons */
.fr-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px;
    font: 600 15px/1 var(--fr-font); text-decoration: none;
    border: 1.5px solid transparent; cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}
.fr-btn:hover { transform: translateY(-1px); opacity: .92; }
.fr-btn-dark { background: var(--fr-green); color: #fff; }
.fr-btn-accent { background: var(--fr-champagne); color: var(--fr-ink); }
.fr-btn-outline { border-color: var(--fr-ink); color: var(--fr-ink); background: transparent; }

.fr-eyebrow {
    display: inline-block; margin: 0 0 12px;
    font: 600 13px/1.2 var(--fr-font); letter-spacing: .12em; text-transform: uppercase;
    color: var(--fr-eyebrow); text-decoration: none;
}

/* Header */
.fr-header { position: sticky; top: 0; z-index: 50; background: rgba(246,245,241,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--fr-border); }
.fr-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.fr-nav-logo { display: flex; align-items: center; text-decoration: none; }
.fr-nav-logo img { height: 26px; width: auto; }
.fr-nav-title { font: 900 22px/1 var(--fr-display); color: var(--fr-ink); letter-spacing: .02em; }
.fr-nav-links { display: flex; align-items: center; gap: 22px; }
.fr-nav-links ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.fr-nav-links ul a, .fr-nav-signin { color: var(--fr-ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.fr-nav-links ul a:hover, .fr-nav-signin:hover { color: var(--fr-eyebrow); }
.fr-nav-links .nav-current a { color: var(--fr-eyebrow); }

/* Hero */
.fr-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.fr-hero-logo { height: 34px; width: auto; margin-bottom: 28px; }
.fr-hero-title { font-size: clamp(40px, 5.4vw, 68px); font-weight: 900; letter-spacing: -.02em; }
.fr-hero-intro { font-size: 19px; max-width: 560px; margin: 0 0 32px; }
.fr-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fr-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--fr-radius); overflow: hidden; background: var(--fr-green); box-shadow: 0 24px 60px -24px rgba(22,32,26,.45); }
.fr-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fr-video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--fr-champagne); font-weight: 500; background: radial-gradient(circle at 30% 20%, #2C5240, var(--fr-green) 70%); }
.fr-play { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--fr-champagne); color: var(--fr-green); padding-left: 4px; }

/* Goal band */
.fr-band { background: var(--fr-green); color: #fff; padding: 56px 0; }
.fr-band-logo { margin-bottom: 36px; }
.fr-band-logo img { height: 30px; width: auto; }
.fr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.fr-stat { display: flex; flex-direction: column; gap: 6px; border-left: 2px solid var(--fr-champagne); padding-left: 18px; }
.fr-stat-value { font: 900 clamp(28px, 3.2vw, 40px)/1.05 var(--fr-display); color: var(--fr-champagne); }
.fr-stat-label { font-size: 14px; color: rgba(255,255,255,.78); }

/* Sections */
.fr-section { padding-top: 80px; padding-bottom: 24px; }
.fr-section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.fr-section-title { font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; letter-spacing: -.01em; margin: 0; }

/* Cards */
.fr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fr-card { background: var(--fr-card); border: 1px solid var(--fr-border); border-radius: var(--fr-radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.fr-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(22,32,26,.35); }
.fr-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.fr-card-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.fr-card-image-empty { background: linear-gradient(135deg, var(--fr-green), #2C5240); }
.fr-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 26px; flex: 1; }
.fr-card-tag { font: 600 12px/1 var(--fr-font); letter-spacing: .1em; text-transform: uppercase; color: var(--fr-eyebrow); }
.fr-card-title { font-size: 21px; font-weight: 700; margin: 0; }
.fr-card-excerpt { font-size: 15px; margin: 0; flex: 1; }
.fr-card-more { font-weight: 600; font-size: 14px; color: var(--fr-green); }
.fr-card-more::after { content: " →"; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 40px 0 0; font-size: 15px; }
.pagination a { color: var(--fr-green); font-weight: 600; text-decoration: none; }

/* Gear (page content rendered as cards: use H3 + paragraph per item) */
.fr-gear { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.fr-gear > * { margin: 0; }
.fr-gear > h3, .fr-gear > h2 { grid-column: 1 / -1; }
.fr-gear .kg-callout-card, .fr-gear blockquote { background: var(--fr-card); border: 1px solid var(--fr-border); border-radius: var(--fr-radius); padding: 22px; }

/* About */
.fr-about { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; background: var(--fr-card); border: 1px solid var(--fr-border); border-radius: var(--fr-radius); padding: 40px; margin-bottom: 56px; }
.fr-about-photo { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; }
.fr-about-title { font-size: 32px; font-weight: 900; }
.fr-about-text p { margin: 0 0 20px; }

/* Article */
.fr-article { padding: 64px 0 40px; }
.fr-article-header { margin-bottom: 36px; }
.fr-article-title { font-size: clamp(34px, 4.6vw, 54px); font-weight: 900; letter-spacing: -.02em; }
.fr-article-excerpt { font-size: 20px; margin: 0 0 24px; }
.fr-byline { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.fr-byline-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.fr-byline-name { font-weight: 600; color: var(--fr-ink); }
.fr-byline-meta { color: #6B726D; }
.fr-article-image { max-width: var(--fr-width); margin: 0 auto 48px; padding: 0 24px; }
.fr-article-image img { width: 100%; border-radius: var(--fr-radius); }
.fr-article-image figcaption { text-align: center; font-size: 14px; color: #6B726D; margin-top: 10px; }
.fr-comments { margin-top: 56px; }

/* Post content */
.gh-content { font-size: 18px; line-height: 1.75; }
.gh-content > * + * { margin-top: 1.4em; }
.gh-content > * { margin-bottom: 0; }
.gh-content h2 { font-size: 30px; font-weight: 700; margin-top: 2em; }
.gh-content h3 { font-size: 23px; font-weight: 700; margin-top: 1.6em; }
.gh-content a { color: var(--fr-green); text-decoration-color: var(--fr-champagne); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gh-content blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--fr-champagne); font-style: italic; color: var(--fr-ink); }
.gh-content pre { background: var(--fr-ink); color: #F6F5F1; padding: 18px; border-radius: 10px; overflow-x: auto; font-size: 15px; }
.gh-content code { font-size: .9em; }
.gh-content hr { border: 0; border-top: 1px solid var(--fr-border); }
.gh-content img { border-radius: 10px; }
.gh-content figcaption { text-align: center; font-size: 14px; color: #6B726D; margin-top: 10px; }

/* Koenig cards (required by Ghost) */
.kg-width-wide { position: relative; width: min(1040px, 100vw - 48px); left: 50%; transform: translateX(-50%); max-width: none; }
.kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); max-width: none; }
.kg-width-full img { border-radius: 0; width: 100%; }
.kg-image { margin: 0 auto; }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }

/* Error */
.fr-error { padding-top: 120px; padding-bottom: 120px; text-align: center; }
.fr-error .fr-hero-intro { margin-left: auto; margin-right: auto; }

/* Footer */
.fr-footer { margin-top: 80px; background: var(--fr-ink); color: rgba(255,255,255,.7); font-size: 14px; }
.fr-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.fr-footer ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.fr-footer a { color: var(--fr-champagne); text-decoration: none; }

/* Responsive */
@media (max-width: 960px) {
    .fr-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
    .fr-stats { grid-template-columns: repeat(2, 1fr); }
    .fr-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    body { font-size: 16px; }
    .fr-nav-links ul { display: none; }
    .fr-cards { grid-template-columns: 1fr; }
    .fr-about { grid-template-columns: 1fr; text-align: center; padding: 28px; }
    .fr-about-photo { margin: 0 auto; width: 160px; height: 160px; }
    .fr-footer-inner { flex-direction: column; text-align: center; }
}

/* About page: round photo next to the title */
.fr-about-hero { display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center; margin-bottom: 48px; }
.fr-about-hero-photo { width: 180px; height: 180px; object-fit: cover; object-position: center 30%; border-radius: 50%; border: 4px solid var(--fr-champagne); }
.fr-about-hero .fr-article-title { margin-bottom: .3em; }
.fr-about-hero .fr-article-excerpt { margin: 0; }
.fr-about-photo { object-position: center 30%; }
@media (max-width: 680px) {
    .fr-about-hero { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .fr-about-hero-photo { margin: 0 auto; width: 140px; height: 140px; }
}

/* v1.1 */
.fr-about-photo { border: 4px solid var(--fr-champagne); }
.fr-stat-value { font-size: clamp(26px, 2.8vw, 36px); }

/* v1.1.1 gear grid fix */
.fr-gear.gh-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.fr-gear.gh-content > * { margin: 0 !important; }
.fr-gear .kg-callout-card { height: 100%; }
@media (max-width: 960px) { .fr-gear.gh-content { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .fr-gear.gh-content { grid-template-columns: 1fr; } }

/* v1.2.0 calmer section titles */
.fr-section-title { font-size: clamp(26px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.01em; }
.fr-about-title { font-size: clamp(26px, 2.4vw, 30px); font-weight: 700; }

/* v1.3.0 featured first post on the homepage */
.fr-cards-home .fr-card:first-child { grid-column: 1 / -1; }
.fr-cards-home .fr-card:first-child .fr-card-link { flex-direction: row; }
.fr-cards-home .fr-card:first-child .fr-card-image { width: 60%; flex: 0 0 60%; aspect-ratio: 16 / 9; }
.fr-cards-home .fr-card:first-child .fr-card-body { justify-content: center; padding: 40px 44px; gap: 14px; }
.fr-cards-home .fr-card:first-child .fr-card-title { font-size: clamp(24px, 2.4vw, 32px); }
.fr-cards-home .fr-card:first-child .fr-card-excerpt { flex: 0; font-size: 17px; }
@media (max-width: 960px) {
    .fr-cards-home .fr-card:first-child .fr-card-link { flex-direction: column; }
    .fr-cards-home .fr-card:first-child .fr-card-image { width: 100%; flex: none; }
    .fr-cards-home .fr-card:first-child .fr-card-body { padding: 24px 22px 28px; }
}
