/* Spontaneamente – base brand styles (loaded on every page via templates/custom/header.tmpl,
   independent of the selected theme). Brand kit: /work/spontest/branding/BRAND.md */

/* Jost, self-hosted (SIL OFL, from Google Fonts), variable weight 400–800 */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Home page (templates/home.tmpl) ---------- */
.spm-home { padding: 0 !important; font-family: "Jost", "Futura", "Century Gothic", sans-serif; }
.spm-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.spm-eyebrow { margin: 0 0 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; color: #B8261F; }

.spm-hero { background: #ffffff; color: #17181C; }
.spm-hero .spm-wrap { padding-top: 72px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.spm-hero-text { flex: 999 1 560px; min-width: 0; }
.spm-hero h1 { margin: 0; font-family: inherit; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -.01em; color: #17181C; }
.spm-hero h1 span { color: #DB3833; }
.spm-lead { margin: 28px 0 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: #45464C; max-width: 620px; }
.spm-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.spm-hero-img { flex: 1 1 340px; display: flex; justify-content: center; }
.spm-hero-img img { width: 100%; max-width: 420px; height: auto; display: block; }

.spm-btn { display: inline-block; font-weight: 600; font-size: 19px; line-height: 1.3; text-decoration: none !important; border-radius: 999px; transition: background-color .15s, color .15s; }
.spm-btn-primary { background: #B8261F; color: #ffffff !important; padding: 16px 30px; }
.spm-btn-primary:hover { background: #8E1C17; }
.spm-btn-outline { background: #ffffff; color: #17181C !important; padding: 14px 28px; border: 2px solid #17181C; }
.spm-btn-outline:hover { background: #17181C; color: #ffffff !important; }
.spm-btn:focus-visible { outline: 3px solid #F4B9B6; outline-offset: 2px; }

.spm-dark { background: #17181C; color: #ffffff; }
.spm-dark .spm-wrap { padding-top: 88px; padding-bottom: 88px; }
.spm-dark .spm-eyebrow { color: #F08A85; margin-bottom: 12px; }
.spm-dark h2 { margin: 0; font-family: inherit; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.05; font-weight: 800; color: #ffffff; max-width: 860px; }
.spm-dark .spm-sub { margin: 24px 0 0; font-size: 20px; line-height: 1.55; color: #CFCFD4; max-width: 720px; }
.spm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 48px; }
.spm-card { background: #24252B; border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 14px; color: #ffffff !important; text-decoration: none !important; }
.spm-card:hover { background: #2d2e35; }
.spm-card .spm-num { font-size: 44px; font-weight: 800; color: #DB3833; line-height: 1; }
.spm-card .spm-card-title { font-size: 24px; font-weight: 700; line-height: 1.2; }
.spm-card .spm-card-text { font-size: 17px; line-height: 1.55; color: #CFCFD4; }

/* ---------- Brand footer (templates/custom/body_outer_post.tmpl) ---------- */
.spm-footer { background: #14251D; color: #DCE3DE; font-family: "Jost", "Futura", "Century Gothic", sans-serif; margin-top: 32px; }
.spm-footer .spm-wrap { padding-top: 48px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 32px 40px; justify-content: space-between; align-items: center; }
.spm-footer-brand { display: flex; align-items: center; gap: 16px; flex: 1 1 320px; color: #DCE3DE !important; text-decoration: none !important; }
.spm-footer-brand img { width: 72px; height: 72px; display: block; }
.spm-footer-name { font-weight: 700; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; color: #ffffff; line-height: 1.2; }
.spm-footer-tag { font-size: 16px; }
.spm-footer nav { display: flex; flex-wrap: wrap; gap: 12px 32px; flex: 1 1 360px; justify-content: flex-end; }
.spm-footer nav a { color: #DCE3DE !important; text-decoration: none; font-size: 17px; }
.spm-footer nav a:hover { color: #ffffff !important; text-decoration: underline; }
.spm-footer-copy { max-width: 1240px; margin: 0 auto; padding: 16px 24px 4px; border-top: 1px solid #2B4337; font-size: 15px; color: #A9B8AF; }
body:has(.spm-home) .spm-footer { margin-top: 0; }

/* The standard Forgejo footer row sits right below the brand footer: give it the same green */
.page-footer { background: #14251D !important; color: #A9B8AF !important; border-top: 0 !important; font-family: "Jost", "Futura", "Century Gothic", sans-serif; }
.page-footer a, .page-footer .ui.dropdown { color: #A9B8AF !important; }
.page-footer a:hover { color: #ffffff !important; }

@media (max-width: 767.98px) {
  .spm-hero .spm-wrap { padding-top: 40px; padding-bottom: 40px; gap: 32px; }
  .spm-dark .spm-wrap { padding-top: 56px; padding-bottom: 56px; }
  .spm-footer nav { justify-content: flex-start; }
}
