/* Hannesoft LLC — company site
   No webfonts, no JS, no third-party requests. Everything here is local. */

:root {
  --bg:        #fbfaf8;
  --bg-sunk:   #f2f0ec;
  --fg:        #1b1d21;
  --fg-muted:  #5c6069;
  --rule:      #e2dfd9;
  --accent:    #1f5f5b;
  --accent-fg: #14403d;
  --measure:   34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #14161a;
    --bg-sunk:   #1b1e23;
    --fg:        #e8e6e1;
    --fg-muted:  #a0a4ac;
    --rule:      #2b2f36;
    --accent:    #6fbfb6;
    --accent-fg: #8fd3ca;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

.wrap {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

main { padding-block: 1rem 5rem; }

section { padding-block: 2.75rem; }

.prose { max-width: var(--measure); }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
  padding-block: 1.25rem;
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
  text-decoration: none;
}

/* The logo is inlined rather than loaded as a file, so it inherits the text
   colour and needs no second copy for dark mode. Only the crossbars are held
   at the accent colour. */
.logo {
  height: 1.3rem;
  width: auto;
  fill: currentColor;
  display: block;
}

/* Two colours from one file: "Hanne" and the uprights inherit the text colour,
   "soft" and the crossbars take the accent. One copy serves light and dark. */
.logo .bar { fill: var(--accent); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  padding-block: 0.125rem;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--fg); border-bottom-color: var(--accent); }

.site-nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--rule); }

/* ---------- type ---------- */

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.85rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.6rem); margin-top: 0; }
h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-fg); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }

@media (prefers-color-scheme: dark) {
  a { color: var(--accent); }
  a:hover { color: var(--accent-fg); }
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--fg-muted);
  max-width: var(--measure);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 1rem;
}

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

.hero { padding-block: 4rem 3rem; }
.hero h1 { max-width: 30rem; }

/* ---------- product cards ---------- */

.cards {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.card {
  background: var(--bg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card h3 { margin: 0; }

/* Each product's own logo, as its own session supplied it. Heights are tuned by
   eye, not set equal: TenderYeti's lockup carries a mascot and a tagline inside
   the same box, so its type is smaller at the same height and it needs more.
   The name lives in the img's alt text, which is what the h3 contributes. */
.card .brand { line-height: 0; margin-bottom: 0.15rem; }

.card .brand img {
  width: auto;
  display: block;
  max-width: 100%;
}

.card .monkeynme img      { height: 28px; }
.card .tenderyeti img     { height: 34px; }
.card .nomadicexperts img { height: 18px; }

.card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.9375rem;
}

.card .out {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- definition-style legal data ---------- */

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) 1fr;
  gap: 0.1rem 1.5rem;
  max-width: 44rem;
}

.facts dt {
  color: var(--fg-muted);
  font-size: 0.875rem;
  padding-top: 0.45rem;
}

.facts dd {
  margin: 0;
  padding-top: 0.3rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--rule);
}

.facts dt + dd { border-bottom: 1px solid var(--rule); }

@media (max-width: 34rem) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dt { padding-top: 0.9rem; }
  .facts dd { border-bottom: 1px solid var(--rule); }
}

/* ---------- panel ---------- */

.panel {
  background: var(--bg-sunk);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.75rem;
}

.panel h2 { margin-bottom: 0.4rem; }

address { font-style: normal; }

/* ---------- small print / footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: 2rem 3rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-foot a { color: var(--fg-muted); }
.site-foot a:hover { color: var(--fg); }

.foot-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

.updated { font-size: 0.8125rem; color: var(--fg-muted); margin-top: 2.5rem; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin-block: 2.5rem;
}

ul { padding-left: 1.2rem; max-width: var(--measure); }
li { margin-bottom: 0.4rem; }

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem;
  position: fixed;
  background: var(--bg);
  border: 1px solid var(--accent);
  padding: 0.5rem 0.9rem;
  border-radius: 3px;
  z-index: 10;
}

/* ---------- the brand motif ----------------------------------------------

   The hero artwork is the logo mark at three scales, cascading off the
   bottom-right corner. It is inlined in the HTML rather than loaded as a file
   so it takes its colour from `currentColor` and needs no second copy for dark
   mode - the same trick the header wordmark uses.

   Each mark is one <g> with a group opacity. Per-rect opacity looks equivalent
   and is not: inside a mark the uprights and crossbars overlap, so per-rect
   alpha multiplies at every crossing and the whole thing turns into tartan.
   That was the first attempt. Group opacity composites once.

   It is decoration and carries no meaning, hence aria-hidden. Nothing on the
   page depends on it being visible, and below 60rem it is simply not shown. */

.motif {
  color: var(--accent);
  display: block;
  width: 100%;
  height: auto;
}

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

.hero {
  padding-block: 4.5rem 3.25rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 { max-width: 30rem; }

.hero-art { display: none; }

@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 3.5rem; }
  .hero-art { display: block; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.75rem;
  margin-top: 1.9rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  /* The page background, not white: in dark mode the accent is the light
     colour and the label has to go dark. One declaration covers both. */
  color: var(--bg);
  padding: 0.7rem 1.15rem;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.cta:hover,
.cta:focus-visible { background: var(--accent-fg); color: var(--bg); }

@media (prefers-color-scheme: dark) {
  .cta:hover, .cta:focus-visible { background: var(--accent-fg); color: var(--bg); }
}

/* ---------- full-width bands ----------

   A band is a <section> that is a direct child of <main> and carries its own
   .wrap inside. That is why index.html and products.html no longer wrap the
   whole of main in one .wrap: a tinted strip has to reach the window edge, and
   the viewport-unit tricks that fake it from inside a centred column all bring
   a horizontal scrollbar with them. */

.band {
  background: var(--bg-sunk);
  border-block: 1px solid var(--rule);
}

/* ---------- card polish ---------- */

/* The three logos are different shapes; a fixed box makes them share a
   baseline row instead of each starting wherever its own artwork ends. */
.card .brand {
  display: flex;
  align-items: center;
  min-height: 2.6rem;
  line-height: 0;
  margin-bottom: 0.45rem;
}

.card { transition: background 120ms ease; }
.card:hover { background: var(--bg-sunk); }

/* On a tinted band the cards keep the page background, so the grid reads as
   raised rather than sunk. The hover then has to go the other way. */
.band .card:hover { background: var(--bg-sunk); }

.card .out a { text-decoration: none; font-weight: 600; }
.card .out a:hover { text-decoration: underline; }

/* ---------- panel accent ---------- */

.panel { border-left: 3px solid var(--accent); }

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

.foot-brand { display: flex; align-items: center; gap: 0.7rem; }

/* Only the mark, not the wordmark: the full lockup is ~4 KB of path data and
   putting a second copy in the footer of every page would cost more than the
   footer is worth. The four rectangles are 300 bytes. */
.foot-mark {
  height: 0.95rem;
  width: auto;
  flex: none;
  fill: currentColor;
  opacity: 0.7;
}
.foot-mark .bar { fill: var(--accent); }

/* The hero section supplies its own vertical rhythm, so the generic section
   padding would double it. */
.hero-band { padding-block: 0; }

.after-cards { margin-top: 1.5rem; font-size: 0.9375rem; }

/* The products page takes the same artwork mirrored, so the two pages read as
   siblings rather than as a repeat. */
.motif-flip { transform: scaleX(-1); }
