/* Self-hosted fonts (from Google Fonts, SIL Open Font License) */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/worksans-vietnamese-400.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/worksans-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/worksans-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/worksans-vietnamese-400.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/worksans-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/worksans-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/worksans-vietnamese-400.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/worksans-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/worksans-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/youngserif-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/youngserif-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================
   Theme tokens: change colors and fonts here
   ========================================================== */
:root {
  --ink: #1E2B3A;          /* main text, navy "pen ink" */
  --ink-soft: #4A5868;     /* secondary text */
  --green: #2F5D46;        /* brand / buttons, ledger-book green */
  --green-dark: #234836;   /* button hover */
  --paper: #F3F7F1;        /* pale ledger-paper green */
  --rule: #C9DDCB;         /* ledger lines */
  --margin: #B23A3A;       /* red margin line (hero only) */
  --white: #FFFFFF;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 68rem;
  --radius: 6px;
  --line: 2rem;            /* ledger line spacing */
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h2 { font-size: clamp(1.75rem, 3.5vw, 2.375rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; max-width: 65ch; }

a { color: var(--green); text-underline-offset: 0.2em; }
a:hover { color: var(--green-dark); }

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--white);
  z-index: 100;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ==========================================================
   Buttons & links
   ========================================================== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--green-dark); color: var(--white); }
.btn-small { padding: 0.55rem 1rem; font-size: 0.9375rem; white-space: nowrap; }

.text-link { font-weight: 500; }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover { color: var(--green); text-decoration: underline; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .header-inner { gap: 0.75rem; }
  .brand { font-size: 1.125rem; }
}

/* ==========================================================
   Hero: ledger paper with a red double margin line
   ========================================================== */
.hero {
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg,
      transparent 2.75rem, var(--margin) 2.75rem, var(--margin) calc(2.75rem + 1px),
      transparent calc(2.75rem + 1px), transparent 3rem,
      var(--margin) 3rem, var(--margin) calc(3rem + 1px), transparent calc(3rem + 1px)),
    repeating-linear-gradient(180deg,
      transparent 0, transparent calc(var(--line) - 1px),
      var(--rule) calc(var(--line) - 1px), var(--rule) var(--line));
  border-bottom: 1px solid var(--rule);
}
.hero-inner {
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
  padding-left: 4.5rem; /* clears the margin line */
}
.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  max-width: 16ch;
  margin-bottom: 1.5rem;
}
.lede {
  font-size: 1.1875rem;
  color: var(--ink-soft);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin: 2rem 0 1.5rem;
}
.credential {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 600px) {
  .hero {
    background-image:
      linear-gradient(90deg,
        transparent 1rem, var(--margin) 1rem, var(--margin) calc(1rem + 1px),
        transparent calc(1rem + 1px), transparent 1.25rem,
        var(--margin) 1.25rem, var(--margin) calc(1.25rem + 1px), transparent calc(1.25rem + 1px)),
      repeating-linear-gradient(180deg,
        transparent 0, transparent calc(var(--line) - 1px),
        var(--rule) calc(var(--line) - 1px), var(--rule) var(--line));
  }
  .hero-inner { padding-left: 2.25rem; }
}

/* ==========================================================
   Sections
   ========================================================== */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-tint { background: var(--paper); }
.section-intro { color: var(--ink-soft); margin-bottom: 2.5rem; }

/* Services as ledger entries: name in the left column, detail on the right */
.ledger + .ledger { margin-top: 3rem; }
.ledger h3 {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0;
}
.ledger dl { margin: 0; }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 2fr;
  gap: 0.25rem 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.ledger-row dt { font-weight: 600; }
.ledger-row dd { margin: 0; color: var(--ink-soft); }

@media (max-width: 640px) {
  .ledger-row { grid-template-columns: 1fr; }
}

/* Process: a real sequence, so numbers are meaningful */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
  margin: 2rem 0 0;
  padding: 0;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border: 2px solid var(--green);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--green);
}
.steps p { color: var(--ink-soft); margin: 0; }

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.photo-placeholder {
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
}
.about img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.promise {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--green);
  font-family: var(--font-display);
  font-size: 1.3125rem;
  line-height: 1.45;
  max-width: 40ch;
}
.about .btn { margin-top: 0.5rem; }

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .photo-placeholder, .about img { max-width: 20rem; }
}

/* Industries */
.industries {
  columns: 3 14rem;
  column-gap: 2rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.industries li {
  break-inside: avoid;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2.5rem;
  align-items: start;
}
.contact-details { margin: 0; }
.contact-details > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.contact-details dt { font-weight: 600; }
.contact-details dd { margin: 0; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  background: var(--ink);
  color: #D5DCE3;
  font-size: 0.9375rem;
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.footer-inner p { margin: 0; }

