/* ==========================================================================
   Handykam.com — preserved reference archive
   Theme: "Field Guide" — woodland-green natural-history reference
   Framework: UIkit 3 (CDN). This sheet carries brand, typography and the
   structural nav guards; UIkit handles grid, offcanvas and dropdowns.
   ========================================================================== */

:root {
  /* Woodland green family, evolved from the original Soledad customiser values */
  --forest-950: #08210d;
  --forest-900: #0d2f14;
  --forest-800: #0f3f17;
  --forest-700: #115116; /* original nav link */
  --forest-600: #18701f;
  --forest-500: #209b26; /* original accent */
  --sage-300:  #b3c9b1;
  --sage-200:  #c6d8c5; /* original nav background */
  --sage-100:  #d5e8ce; /* original panel background */
  --sage-50:   #edf2eb; /* original headline band */

  --paper:     #fbfaf6;
  --paper-2:   #f5f3ec;
  --white:     #ffffff;

  --ink:       #14261a;
  --ink-soft:  #33453a;
  --muted:     #5d6f61;
  --rule:      #d9ded4;
  --rule-soft: #e8ebe3;

  --oak:       #8a6a22; /* restrained secondary: lichen / seasoned oak */

  --radius:    3px;
  --radius-lg: 5px;

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Karla", "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --shadow-soft: 0 1px 2px rgba(20, 38, 26, .05), 0 8px 24px rgba(20, 38, 26, .05);
}

/* --------------------------------------------------------------- base ---- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--forest-700); text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1px; text-decoration-color: var(--sage-300); }
a:hover, a:focus { color: var(--forest-500); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--forest-500); outline-offset: 2px; }

.hk-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; min-width: 0; }

.hk-skip {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--forest-700); color: #fff; padding: .6rem 1rem; text-decoration: none;
}
.hk-skip:focus { left: 0; }

/* ------------------------------------------------------------- header ---- */
/* Three bands, echoing the original: dark utility strip, wordmark band,
   pale-sage navigation. Never position:fixed — a taller bar must push the
   page down, never cover the hero. */

.hk-head { position: relative; z-index: 30; }

.hk-topbar {
  background: var(--forest-900);
  color: #b9cfb7;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .5rem 0;
}
.hk-topbar .hk-wrap { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; align-items: center; justify-content: space-between; }
.hk-topbar span { display: inline-block; }
.hk-topbar .hk-topbar-mark { color: var(--sage-200); }

.hk-brandbar { background: var(--paper); border-bottom: 1px solid var(--rule); padding: 1.15rem 0; }
.hk-brandbar .hk-wrap { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; min-width: 0; }

.hk-brand { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; min-width: 0; flex-wrap: wrap; }
.hk-brand:hover { text-decoration: none; }
.hk-wordmark {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.45rem, 3.6vw, 1.95rem);
  line-height: 1.1;
  color: var(--forest-800);
  letter-spacing: -.015em;
}
.hk-wordmark em { font-style: normal; color: var(--forest-500); }
.hk-strap {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .04em;
  border-left: 1px solid var(--rule);
  padding-left: .6rem;
}
.hk-brandbar-spacer { flex: 1 1 auto; min-width: 0; }

.hk-burger {
  display: none;
  align-items: center;
  gap: .5rem;
  background: var(--forest-700);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .6rem .9rem;
  cursor: pointer;
}
.hk-burger:hover { background: var(--forest-600); }
.hk-burger-bars { display: inline-block; width: 16px; height: 10px; position: relative; }
.hk-burger-bars::before, .hk-burger-bars::after, .hk-burger-bars i {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
}
.hk-burger-bars::before { top: 0; }
.hk-burger-bars i { top: 4px; }
.hk-burger-bars::after { bottom: 0; }

/* ---------------------------------------------------------------- nav ---- */
/* NAV OVERFLOW GUARDS. Framework navbars set flex-shrink:0, so an oversized
   menu is pushed past the viewport and clipped — silently missing navigation.
   min-width:0 + flex-wrap here mean the bar grows taller instead. */

/* The dropdowns are CSS-only — :hover and :focus-within, no framework
   component involved. A framework navbar that fails to initialise renders its
   dropdown as a static block and silently blows the bar up to a thousand
   pixels tall with document overflow of zero, which no overflow check can
   see. Owning this outright removes that failure mode. Every top-level item
   is also a real link to a real page, and every one of the 37 pages is in the
   footer index, so navigation survives with no JavaScript whatsoever. */

.hk-navbar { background: var(--sage-200); border-bottom: 2px solid var(--forest-700); }
.hk-navbar .hk-wrap { min-width: 0; }

.hk-nav {
  display: flex;
  flex-wrap: wrap;      /* grow taller, never push links past the viewport */
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hk-nav > li { position: relative; min-width: 0; }
.hk-nav > li > a {
  display: block;
  padding: .85rem .78rem;
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--forest-800);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}
.hk-nav > li > a:hover,
.hk-nav > li > a:focus { color: var(--forest-950); border-bottom-color: var(--forest-500); }
.hk-nav > li.hk-current > a { color: var(--forest-950); border-bottom-color: var(--forest-700); }
.hk-caret { font-size: .7em; opacity: .7; }

.hk-sub {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  width: 320px;
  max-width: calc(100vw - 2rem);
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--forest-700);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.15rem 1.35rem 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
  pointer-events: none;
}
.hk-sub--wide { width: 600px; }
.hk-sub--right { left: auto; right: 0; }
.hk-has-sub:hover > .hk-sub,
.hk-has-sub:focus-within > .hk-sub {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
}

.hk-sub-cols { display: grid; grid-template-columns: 1fr; gap: 1.1rem 1.6rem; }
.hk-sub--wide .hk-sub-cols { grid-template-columns: 1fr 1fr; }
.hk-sub-col { min-width: 0; }
.hk-sub-head {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .5rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--rule-soft);
}
.hk-sub ul { list-style: none; margin: 0; padding: 0; }
.hk-sub li { margin: 0; }
.hk-sub li a {
  display: block;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.35;
  padding: .32rem 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.hk-sub li a:hover, .hk-sub li a:focus { color: var(--forest-600); border-bottom-color: var(--sage-300); }

@media (prefers-reduced-motion: reduce) {
  .hk-sub { transition: none; }
}

/* Mobile menu. Deliberately NOT a framework component: it is plain markup
   toggled by one vanilla listener, with every one of the 37 links rendered
   flat and expanded — one tap reaches all of them, no accordion, no second
   interaction. Every link also lives in the footer index, so navigation
   survives even if no JavaScript runs at all. */
.hk-menu {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: var(--forest-950); color: #dfe9dc;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 1.1rem 1.25rem 3rem;
}
.hk-menu.is-open { display: block; }
body.hk-menu-open { overflow: hidden; }
.hk-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.16); padding-bottom: .85rem; }
.hk-menu-head span { font-family: var(--font-display); font-size: 1.15rem; color: var(--sage-200); }
.hk-menu-close { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #e7efe4; border-radius: var(--radius); font-family: var(--font-body); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: .5rem .8rem; cursor: pointer; }
.hk-menu-close:hover { background: rgba(255,255,255,.1); }
.hk-menu h2 { font-family: var(--font-body); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-300); margin: 1.5rem 0 .35rem; border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: .35rem; }
.hk-menu ul { list-style: none; margin: 0 0 .25rem; padding: 0; }
.hk-menu li { margin: 0; }
.hk-menu a { display: block; color: #e7efe4; text-decoration: none; padding: .5rem 0; font-size: .95rem; line-height: 1.4; border-bottom: 1px solid rgba(255,255,255,.07); }
.hk-menu a:hover, .hk-menu a:focus { color: #fff; }
.hk-menu a[aria-current] { color: var(--forest-500); font-weight: 700; }
.hk-menu-note { font-size: .78rem; color: #93a891; line-height: 1.6; margin-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1rem; }

/* -------------------------------------------------------- breadcrumbs ---- */

.hk-crumbs { background: var(--sage-50); border-bottom: 1px solid var(--rule-soft); font-size: .78rem; }
.hk-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; margin: 0; padding: .6rem 0; color: var(--muted); }
.hk-crumbs a { color: var(--forest-700); text-decoration: none; }
.hk-crumbs a:hover { text-decoration: underline; }
.hk-crumbs li + li::before { content: "›"; margin-right: .55rem; color: var(--sage-300); }
.hk-crumbs [aria-current] { color: var(--ink-soft); }

/* --------------------------------------------------------------- hero ---- */

.hk-hero { background: var(--forest-950); position: relative; }
.hk-hero-img { width: 100%; height: clamp(230px, 42vw, 480px); object-fit: cover; opacity: .96; }
.hk-hero-caption {
  background: var(--forest-950);
  color: #a9c1a6;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .55rem 0;
}
.hk-hero-caption .hk-wrap { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
.hk-hero-caption .hk-plate-no { color: var(--sage-200); }

/* --------------------------------------------------------- page layout --- */

.hk-main { padding: 2.5rem 0 3.5rem; }
.hk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; min-width: 0; }
.hk-article { min-width: 0; }
.hk-aside { min-width: 0; }

@media (max-width: 959px) {
  .hk-layout { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
}

/* ------------------------------------------------------------ article ---- */

.hk-article h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--forest-900);
  margin: 0 0 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 3px double var(--sage-300);
  max-width: 22ch;
  max-width: min(22ch, 100%);
}
.hk-article h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.62rem);
  line-height: 1.25;
  color: var(--forest-800);
  margin: 2.6rem 0 .9rem;
  padding-left: 1rem;
  border-left: 4px solid var(--forest-500);
}
.hk-article h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: var(--forest-800);
  margin: 1.9rem 0 .6rem;
}
.hk-article p { margin: 0 0 1.15rem; max-width: 70ch; }
.hk-article ul, .hk-article ol { margin: 0 0 1.35rem; padding-left: 1.35rem; max-width: 70ch; }
.hk-article li { margin-bottom: .5rem; }
.hk-article ul { list-style: none; padding-left: 1.15rem; }
.hk-article ul > li { position: relative; }
.hk-article ul > li::before {
  content: ""; position: absolute; left: -1.05rem; top: .68em;
  width: 6px; height: 6px; background: var(--forest-500); border-radius: 1px;
}
.hk-article strong { color: var(--forest-900); font-weight: 700; }
.hk-article em { color: var(--ink-soft); }
/* Addresses and hostnames are unbreakable strings: force them to wrap so a
   narrow viewport cannot be pushed sideways by a single <code> run. */
.hk-article code {
  font-family: var(--font-mono); font-size: .86em;
  background: var(--sage-50); border: 1px solid var(--rule-soft);
  border-radius: 2px; padding: .1em .38em; color: var(--forest-800);
  overflow-wrap: anywhere; word-break: break-word; white-space: normal;
}
.hk-article hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* Definition lists — the two glossaries */
.hk-article dl { margin: 0 0 1.75rem; border-top: 1px solid var(--rule); }
.hk-article dt {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--forest-800);
  font-size: 1rem;
  letter-spacing: .01em;
  padding-top: .9rem;
}
.hk-article dd {
  margin: .3rem 0 0;
  padding: 0 0 .9rem 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-soft);
  max-width: 70ch;
}

/* Tables — specification and comparison */
.hk-table-wrap { overflow-x: auto; margin: 0 0 1.75rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); }
.hk-article table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 460px; }
.hk-article thead th {
  background: var(--sage-100);
  color: var(--forest-900);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  padding: .7rem .85rem;
  border-bottom: 2px solid var(--sage-300);
}
.hk-article tbody th { text-align: left; font-weight: 700; color: var(--forest-800); }
.hk-article td, .hk-article tbody th { padding: .62rem .85rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.hk-article tbody tr:last-child td, .hk-article tbody tr:last-child th { border-bottom: 0; }
.hk-article tbody tr:nth-child(even) { background: var(--paper-2); }

/* -------------------------------------------------- archive notice ------- */

.archive-notice {
  background: var(--sage-50);
  border: 1px solid var(--sage-300);
  border-left: 4px solid var(--forest-600);
  border-radius: var(--radius);
  padding: .95rem 1.15rem;
  margin: 0 0 1.9rem;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 70ch;
}
.archive-notice strong { color: var(--forest-800); }

/* Model reference meta strip on product/model pages */
.model-meta {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .02em;
  text-transform: none;
  background: var(--paper-2);
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: .6rem .85rem;
  margin: 0 0 1.35rem;
  color: var(--muted);
  max-width: 70ch;
}
.model-meta strong { color: var(--forest-800); font-weight: 600; }

/* --------------------------------------------------------- figures ------- */

.hk-plate { margin: 2.1rem 0; padding: 0; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.hk-plate img { width: 100%; }
.hk-plate figcaption {
  font-size: .78rem;
  line-height: 1.55;
  color: var(--muted);
  padding: .65rem .85rem;
  border-top: 1px solid var(--rule-soft);
  background: var(--paper-2);
}
.hk-plate figcaption b {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--forest-600);
  font-weight: 500;
  margin-right: .5rem;
}
.hk-plate--portrait { max-width: 340px; }

/* ---------------------------------------------------------- sidebar ------ */

.hk-panel {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.3rem;
  margin-bottom: 1.5rem;
}
.hk-panel--sage { background: var(--sage-50); border-color: var(--sage-300); }
.hk-panel h2 {
  font-family: var(--font-body);
  font-size: .7rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .8rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule);
}
.hk-panel ul { list-style: none; margin: 0; padding: 0; }
.hk-panel li { margin: 0; }
.hk-panel li a {
  display: block;
  padding: .38rem 0;
  font-size: .92rem;
  line-height: 1.4;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
}
.hk-panel li:last-child a { border-bottom: 0; }
.hk-panel li a:hover { color: var(--forest-600); }
.hk-panel li a[aria-current] { color: var(--forest-800); font-weight: 700; }
.hk-panel p { font-size: .88rem; line-height: 1.65; color: var(--muted); margin: 0 0 .8rem; }
.hk-panel p:last-child { margin-bottom: 0; }

.hk-aside-mark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--forest-700);
  margin: 0 0 .35rem;
}

/* --------------------------------------------------------- home extras --- */

/* The homepage runs as a single centred measure under the full-bleed hero,
   rather than the article + sidebar of the interior pages. */
.hk-home .hk-article { max-width: 46rem; margin: 0 auto; }
.hk-home .hk-cardgrid { max-width: 62rem; margin-left: auto; margin-right: auto; }

.hk-cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.15rem; margin: 2.75rem 0 0; }
@media (min-width: 880px) { .hk-cardgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hk-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--forest-500);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.25rem;
  min-width: 0;
}
.hk-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 .4rem; color: var(--forest-800); line-height: 1.25; }
.hk-card p { font-size: .9rem; color: var(--muted); margin: 0 0 .7rem; line-height: 1.6; }
.hk-card a { font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid var(--sage-300); }
.hk-card a:hover { border-bottom-color: var(--forest-500); }

/* ------------------------------------------------------------- footer ---- */

.hk-foot { background: var(--forest-950); color: #b9cdb6; margin-top: 3rem; }
.hk-foot-index { padding: 2.75rem 0 1.75rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.hk-foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.6rem 2rem; min-width: 0; }
.hk-foot-col { min-width: 0; }
.hk-foot h2 {
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage-300);
  margin: 0 0 .7rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.hk-foot ul { list-style: none; margin: 0; padding: 0; }
.hk-foot li { margin: 0 0 .3rem; }
.hk-foot a { color: #d6e3d3; text-decoration: none; font-size: .87rem; line-height: 1.5; }
.hk-foot a:hover { color: #fff; text-decoration: underline; }

.hk-foot-notice { padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.hk-foot-notice p {
  margin: 0; max-width: 78ch; font-size: .87rem; line-height: 1.7; color: #a6bda3;
  border-left: 3px solid var(--forest-600); padding-left: 1rem;
}
.hk-foot-legal { padding: 1.25rem 0 2.25rem; font-size: .78rem; color: #8ba489; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; }
.hk-foot-legal a { font-size: .78rem; }

/* -------------------------------------------------------------- 404 ------ */

.hk-404 { text-align: left; padding: 3.5rem 0 4.5rem; }
.hk-404 .hk-code { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .22em; color: var(--forest-500); text-transform: uppercase; }

/* ------------------------------------------------- responsive switches --- */

@media (max-width: 959px) {
  .hk-navbar { display: none; }
  .hk-burger { display: inline-flex; }
  body { font-size: 16px; }
  .hk-topbar { font-size: .66rem; letter-spacing: .1em; }
}

@media (min-width: 960px) {
  .hk-burger { display: none !important; }
}

@media (max-width: 420px) {
  .hk-strap { border-left: 0; padding-left: 0; flex-basis: 100%; }
  .hk-plate--portrait { max-width: 100%; }
}

/* Entrance animation is CSS-only and ends in the visible state, so content
   is never gated on JavaScript. Reveal libraries are deliberately not used. */
@keyframes hkFadeUp { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hk-article > h1 { animation: hkFadeUp .5s ease both; }
}
[data-aos] { opacity: 1 !important; transform: none !important; }

@media print {
  .hk-navbar, .hk-burger, .hk-oc, .hk-crumbs, .hk-aside { display: none; }
  body { background: #fff; }
}
