:root {
  --ink: #18342d;
  --forest: #24483d;
  --sage: #9fb6a8;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --gold: #efc072;
  --line: #d9e0da;
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a { color: #1d6554; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #a45e24; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold) !important;
  outline-offset: 4px;
  border-radius: 4px;
}

.navbar {
  background: rgba(255,253,248,.96) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 8px 28px rgba(24,52,45,.06);
  backdrop-filter: blur(12px);
}
.uk-navbar { min-height: 74px; display: flex; align-items: center; }
.uk-navbar-brand { display: inline-flex; align-items: center; min-height: 74px; }
.uk-navbar-brand img { width: auto; max-width: 210px; object-fit: contain; }
.uk-navbar-nav > li > a {
  color: var(--ink) !important;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: none;
}
.uk-navbar-nav > li.uk-active > a, .uk-navbar-nav > li > a:hover { color: #a45e24 !important; }
.brand-mark { align-items: center; color: var(--ink); display: inline-flex; gap: .65rem; }
.brand-mark > span { background: var(--forest); border-radius: 12px; color: var(--gold); display: grid; height: 42px; place-items: center; width: 42px; }

.hero {
  background: linear-gradient(135deg, var(--cream), #e8efe9) !important;
  border-bottom: 1px solid var(--line);
}
.content h1, .content h2, .content h3 { color: var(--ink); font-family: Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.content h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: .98; margin-top: 1.1em; max-width: 14ch; }
.content h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.18; margin-top: 2.1em; }
.content h3 { font-size: 1.35rem; }
.content > p, .content > ul, .content > ol { max-width: 74ch; }
.content li::marker { color: #a45e24; }
.content blockquote { background: var(--cream); border-left: 4px solid var(--gold); padding: 1.1rem 1.4rem; }

.uk-container { max-width: 1180px; padding-left: clamp(20px, 5vw, 64px); padding-right: clamp(20px, 5vw, 64px); }
.uk-block { padding-bottom: clamp(42px, 7vw, 86px); padding-top: clamp(42px, 7vw, 86px); }

.am-card {
  background: #fff;
  border: 1px solid var(--line) !important;
  border-radius: 22px;
  box-shadow: 0 10px 34px rgba(24,52,45,.08);
  height: 100%;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.am-card:hover { box-shadow: 0 18px 44px rgba(24,52,45,.14); transform: translateY(-4px); }
.am-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.am-card .content { padding: 1.35rem; }

.buttons-stacked a, .uk-button {
  border-radius: 999px !important;
  font-weight: 700;
}
.uk-button-primary { background: var(--forest) !important; color: white !important; }
input[type="search"] { border: 2px solid var(--sage) !important; border-radius: 14px !important; min-height: 54px; padding-inline: 18px !important; }

.sidebar { background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 1.25rem; }
.breadcrumb, .uk-breadcrumb { color: #536b63; font-size: .9rem; }
.article-cover { margin-bottom: 0; margin-top: 1.5rem; }
.article-cover img {
  aspect-ratio: 16 / 10;
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(24,52,45,.16);
  display: block;
  max-height: 680px;
  object-fit: cover;
  width: 100%;
}
footer { background: var(--forest); color: #edf4ef; margin-top: 3rem; }
footer a { color: #fff3d8; }
.footer-note { margin: 2rem 0 0; opacity: .86; }

@media (max-width: 959px) {
  .uk-navbar { min-height: 64px; }
  .uk-navbar-brand { min-height: 64px; }
  .uk-navbar-brand img { max-width: 165px; }
  .content h1 { font-size: clamp(2.25rem, 11vw, 3.8rem); }
  .uk-modal-dialog { background: var(--paper) !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media print {
  .navbar, footer, .sidebar { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
