


:root {
  /* 60 / 30 / 10 Colour System in OKLCH-grounded values */
  --ground: #141212;
  --surface: #1D1D1D;
  --surface-2: #2A2A2A;
  --line: #464646;
  --ink-soft: #B7B7B7;
  --ink: #E8E8E8;
  --accent: #268551;
  --accent-ink: #FFFFFF;
  --hairline: #B08D57;


  /* Shell, layout primitives and gutter tokens */
  --tiha-598: 78rem;
  --tiha-6f9: clamp(1.25rem, 4vw, 3rem);
  --radius: 6px;
  --dock-height: 64px;
  --rail-width: 5rem;
  --frame-padding: clamp(0.75rem, 2vw, 1.5rem);


  --tiha-c19: "Arvo", "Arvo Fallback", Georgia, "Times New Roman", serif;
  --tiha-156: "Bitter", "Bitter Fallback", Georgia, serif;
  --tiha-729: "IBM Plex Mono", "IBM Plex Mono Fallback", Menlo, Consolas, monospace;


  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.85rem);
  --tiha-cbb: clamp(0.94rem, 0.90rem + 0.25vw, 1.06rem);
  --tiha-e9c: clamp(1.10rem, 1.02rem + 0.45vw, 1.32rem);
  --tiha-e3b: clamp(1.30rem, 1.18rem + 0.75vw, 1.68rem);
  --tiha-c35: clamp(1.55rem, 1.38rem + 1.2vw, 2.15rem);
  --tiha-5b2: clamp(1.85rem, 1.62rem + 1.7vw, 2.75rem);
  --tiha-8c9: clamp(2.20rem, 1.88rem + 2.5vw, 3.50rem);


  /* Spacing Rhythm */
  --space-3xs: clamp(0.25rem, 0.22rem + 0.15vw, 0.38rem);
  --space-2xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
  --space-xs: clamp(0.75rem, 0.68rem + 0.35vw, 1rem);
  --space-s: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
  --space-m: clamp(1.5rem, 1.35rem + 0.75vw, 2.25rem);
  --space-l: clamp(2rem, 1.8rem + 1vw, 3rem);
  --space-xl: clamp(3rem, 2.7rem + 1.5vw, 4.5rem);
  --space-2xl: clamp(4rem, 3.6rem + 2vw, 6rem);


  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snappy: cubic-bezier(0.2, 0, 0, 1);
  --duration-micro: 140ms;
  --duration-short: 240ms;
  --duration-medium: 420ms;
  --duration-long: 650ms;


  /* Line Height & Measure */
  --leading-tight: 1.18;
  --leading-snug: 1.3;
  --leading-normal: 1.58;
  --measure: 65ch;
}


/* Box sizing and document reset */
*, *::before, *::after { box-sizing: border-box; }


html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-l);
  background-color: var(--ground);
  color: var(--ink);
}


body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--tiha-156);
  font-size: var(--tiha-cbb);
  line-height: var(--leading-normal);
  text-rendering: optimizeLegibility;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--dock-height) + env(safe-area-inset-bottom, 0px) + 24px);
}


/* Images & embedded media */
img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}


figure { margin: 0; }


h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--tiha-c19);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
}


h1 {
  font-size: var(--tiha-8c9);
  letter-spacing: -0.025em;
}


h2 {
  font-size: var(--tiha-5b2);
  letter-spacing: -0.02em;
}


h3 { font-size: var(--tiha-e3b); }


h4 { font-size: var(--tiha-e9c); }


p {
  margin: 0 0 var(--space-s) 0;
  max-width: var(--measure);
}


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


small {
  font-size: var(--step--1);
  color: var(--ink-soft);
}


strong, b {
  font-weight: 600;
  color: var(--ink);
}


em, i { font-style: italic; }


.figure-spec,
.price-tag,
.tabular-data,
.code-inline {
  font-family: var(--tiha-729);
  font-variant-numeric: tabular-nums;
  font-size: 0.92em;
  letter-spacing: -0.01em;
}


button, input, select, textarea {
  font: inherit;
  color: inherit;
}


a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--duration-micro) var(--ease-snappy),
              text-decoration-color var(--duration-micro) var(--ease-snappy);
}


a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}


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


/* Skip to main link for accessible screen reader & keyboard navigation */
.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 1000;
  background: var(--surface-2);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: top var(--duration-short) var(--ease-snappy);
}


.skip-link:focus { top: 1rem; }


.shell {
  width: 100%;
  max-width: var(--tiha-598);
  margin-inline: auto;
  padding-inline: var(--tiha-6f9);
}


.shell--narrow { max-width: 54rem; }


.shell--wide { max-width: 88rem; }


/* Visible Ledger Rule Lines — Signature Draughtsman Grid */
.ledger-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-l) 0;
  position: relative;
}


.ledger-rule--gold { border-top-color: var(--hairline); }


.ledger-rule::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 5px;
  height: 5px;
  background-color: var(--hairline);
}


/* Boxed Frame wrapper holding the whole site */
.site-frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--line);
  background-color: var(--ground);
}


@media (min-width: 1024px) {
  body { padding-bottom: 0; }

  .site-frame {
    margin: var(--frame-padding);
    border: 1px solid var(--line);
    border-top: 2px solid var(--hairline);
  }
}


/* Icon sprite glyph sizing */
.icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  flex-shrink: 0;
  vertical-align: -0.15em;

}


@media (pointer: coarse) {
  .site-footer__contact a,
  .contact-info-block a,
  .mobile-drawer__contact a,
  .site-header a,
  button,
  .btn,
  select option,
  .form-select { min-height: 44px; }
  .site-footer__contact a,
  .contact-info-block a,
  .mobile-drawer__contact a {
    display: inline-flex;
    align-items: center;
  }
}


.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  

  .drawing-line-path { stroke-dashoffset: 0 !important; }
}
