:root {
  --ink: #1d2a33;
  --muted: #5b6a74;
  --line: #d9dfe3;
  --paper: #f7f5f0;
  --accent: #2f5d62;
  --on-ink: color-mix(in srgb, var(--paper) 78%, var(--ink));
}
* { box-sizing: border-box; }
::selection { background: var(--accent); color: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 Georgia, "Times New Roman", serif;
}
header, main, footer { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
header {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 2rem; padding-block: 1.5rem; border-bottom: 3px solid var(--ink);
}
.brand {
  font-size: 1.1rem; font-weight: bold; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.brand span { color: var(--accent); }
/* Three offset bars read as stacked cargo; drawn in CSS so the site stays a single request per page. */
.brand::before {
  content: ""; display: inline-block; width: 1.05em; height: 0.8em; margin-right: 0.6em;
  vertical-align: -0.05em;
  background:
    linear-gradient(var(--accent) 0 0) 0 0 / 70% 22% no-repeat,
    linear-gradient(var(--ink) 0 0) 100% 50% / 70% 22% no-repeat,
    linear-gradient(var(--accent) 0 0) 30% 100% / 70% 22% no-repeat;
  transition: background-position 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand:hover::before { background-position: 30% 0, 0 50%, 100% 100%; }
nav a[aria-current="page"] { border-bottom-color: var(--ink); }
nav a {
  margin-right: 1.5rem; color: var(--ink); text-decoration: none;
  font: 600 0.8rem system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
  padding-block: 0.25rem; border-bottom: 2px solid transparent;
}
nav a:last-child { margin-right: 0; }
nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
main { padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); }
h1 {
  font-weight: normal; font-size: clamp(2.5rem, 6.5vw, 4.5rem); line-height: 1.04;
  letter-spacing: -0.025em; margin: 0 0 1.75rem; max-width: 16ch; text-wrap: balance;
}
h1 + p { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; max-width: 38rem; }
h2 {
  font-weight: normal; font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.15;
  letter-spacing: -0.015em; margin: clamp(3.5rem, 8vw, 5.5rem) 0 1rem;
  padding-top: 1.25rem; border-top: 3px solid var(--ink);
}
p { max-width: 42rem; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.5rem 2rem; margin-top: clamp(3rem, 7vw, 4.5rem);
}
.card { position: relative; padding-top: 1.25rem; border-top: 6px solid var(--line); }
.card::before {
  content: ""; position: absolute; top: -6px; left: 0; right: 0; height: 6px;
  background: var(--accent); transform-origin: left;
  animation: route 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.card:nth-child(2)::before { animation-delay: 0.12s; }
.card:nth-child(3)::before { animation-delay: 0.24s; }
@keyframes route { from { transform: scaleX(0.08); } }
@media (prefers-reduced-motion: reduce) {
  .card::before { animation: none; }
  .brand::before { transition: none; }
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.6rem; font-weight: normal; line-height: 1.2; letter-spacing: -0.01em; }
.card p { margin: 0 0 0.35rem; color: var(--muted); font-size: 1rem; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }
footer {
  background: var(--ink); color: var(--on-ink);
  box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax);
  padding-block: 2.5rem 3rem; font: 0.9rem/1.5 system-ui, sans-serif;
}
footer a { color: var(--paper); }
footer a:focus-visible { outline-color: var(--paper); }
.note { margin-top: 1rem; font-size: 0.78rem; max-width: 36rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
