/* ── loylyguide.com global styles ── */

/* ── Self-hosted fonts ── */

/* Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-600.woff2') format('woff2');
}

/* Lora */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lora-v37-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lora-v37-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/lora-v37-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/lora-v37-latin-600italic.woff2') format('woff2');
}

/* ── Tokens ── */
:root {
  /* Palette: deep birch forest, not warm terracotta */
  --col-bg:        #F7F6F3;       /* off-white birch */
  --col-surface:   #FFFFFF;
  --col-border:    #E0DDD7;
  --col-text:      #1C1C1A;
  --col-muted:     #6B6760;
  --col-accent:    #2D5A3D;       /* deep Finnish forest green */
  --col-accent-lt: #EAF0EB;
  --col-ember:     #8B4513;       /* ember/wood brown — secondary accent */

  /* Type */
  --font-serif:    'Lora', Georgia, serif;
  --font-sans:     'Inter', system-ui, sans-serif;

  /* Scale */
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;

  /* Layout */
  --max-w:     720px;
  --max-w-wide:1100px;
  --gap:       1.5rem;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--col-bg);
  color: var(--col-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  font-weight: 600;
  color: var(--col-text);
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); margin-top: 2.5rem; margin-bottom: 0.75rem; }
h3 { font-size: var(--text-xl);  margin-top: 2rem;   margin-bottom: 0.5rem; }
h4 { font-size: var(--text-lg);  margin-top: 1.5rem; margin-bottom: 0.5rem; }

p  { margin-bottom: 1.25rem; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a  { color: var(--col-accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--col-ember); }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
li { margin-bottom: 0.35rem; }

strong { font-weight: 600; }
em     { font-style: italic; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ── */
.site-header {
  background: var(--col-surface);
  border-bottom: 1px solid var(--col-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-w-wide);
  margin: 0 auto;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--col-text);
  text-decoration: none;
}
.site-logo span {
  color: var(--col-accent);
}
.site-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav a {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--col-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--col-accent); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--col-border);
  padding: 2.5rem 1.5rem;
  margin-top: 5rem;
  font-size: var(--text-sm);
  color: var(--col-muted);
}
.site-footer__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: var(--col-muted); }
.site-footer a:hover { color: var(--col-accent); }
.site-footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ── Hero ── */
.hero {
  background: var(--col-text);
  color: #F7F6F3;
  padding: 5rem 1.5rem;
  text-align: left;
}
.hero__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}
.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--col-accent);
  /* avoid ALL CAPS per design principles */
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.hero h1 {
  color: #F7F6F3;
  font-size: clamp(2rem, 5vw, var(--text-4xl));
  max-width: 16ch;
  margin-bottom: 1.25rem;
}
.hero__sub {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  color: #C5C2BB;
  max-width: 52ch;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn--primary {
  background: var(--col-accent);
  color: #fff;
}
.btn--primary:hover { background: #224530; color: #fff; }
.btn--ghost {
  background: transparent;
  color: #F7F6F3;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.7); color: #fff; }

/* ── Silo cards ── */
.silo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}
.silo-card {
  background: var(--col-surface);
  border: 1px solid var(--col-border);
  border-radius: 6px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.silo-card:hover {
  border-color: var(--col-accent);
  box-shadow: 0 2px 12px rgba(45,90,61,0.08);
  color: inherit;
}
.silo-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.silo-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--col-text);
}
.silo-card__desc {
  font-size: var(--text-sm);
  color: var(--col-muted);
  line-height: 1.6;
  max-width: 100%;
  margin: 0;
}

/* ── Article list ── */
.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-list__item {
  border-bottom: 1px solid var(--col-border);
  padding: 1.25rem 0;
}
.article-list__item:last-child { border-bottom: none; }
.article-list__link {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  text-decoration: none;
  color: var(--col-text);
}
.article-list__link:hover { color: var(--col-accent); }
.article-list__meta {
  font-size: var(--text-sm);
  color: var(--col-muted);
  margin-top: 0.25rem;
}

/* ── Prose (article content) ── */
.prose {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.75;
  max-width: 68ch;
}
.prose h2 { margin-top: 3rem; }
.prose h3 { margin-top: 2rem; }
.prose p  { margin-bottom: 1.35rem; }
.prose ul, .prose ol { margin-bottom: 1.35rem; }
.prose a  { color: var(--col-accent); }
.prose strong { font-weight: 600; }

/* ── Utility ── */
.section { padding: 4rem 0; }
.section--alt { background: var(--col-surface); }
.text-muted { color: var(--col-muted); }
.text-sm    { font-size: var(--text-sm); }

/* ── Responsive ── */
@media (max-width: 640px) {
  h1 { font-size: var(--text-2xl); }
  .site-nav { gap: 1rem; }
  .hero { padding: 3rem 1rem; }
  .silo-grid { grid-template-columns: 1fr; }
  .site-footer__inner { flex-direction: column; gap: 1rem; }
}
