:root {
  --ink: #24292d;
  --muted: #667078;
  --brand: #0e5d80;
  --brand-dark: #0a4560;
  --line: #d8dee1;
  --paper: #f7f6f2;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 0.22em; }
a:focus-visible { border-radius: 2px; outline: 3px solid rgba(14, 93, 128, 0.3); outline-offset: 5px; }
.site-shell { display: grid; min-height: 100svh; grid-template-rows: auto 1fr auto; }
.site-header { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 34px 0 24px; }
.site-header a { display: inline-block; }
.brand-logo { display: block; width: clamp(270px, 31vw, 410px); height: auto; mix-blend-mode: multiply; }
.home-main { display: grid; width: min(1180px, calc(100% - 64px)); margin: 0 auto; align-items: center; padding: 52px 0 82px; }
.hero { position: relative; max-width: 920px; padding-left: clamp(24px, 6vw, 86px); }
.hero::before { position: absolute; top: 4px; bottom: 5px; left: 0; width: 5px; background: var(--brand); content: ""; }
.eyebrow { margin: 0 0 20px; color: var(--brand); font-size: 0.77rem; font-weight: 600; letter-spacing: 0.2em; line-height: 1.4; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 30px; font-size: clamp(2.75rem, 6.3vw, 5.8rem); font-weight: 430; letter-spacing: -0.04em; line-height: 0.99; }
.intro { max-width: 690px; margin-bottom: 30px; color: var(--muted); font-size: clamp(1.07rem, 1.7vw, 1.35rem); line-height: 1.65; }
.contact-intro { margin-bottom: 2px; color: var(--muted); font-size: 0.96rem; line-height: 1.55; }
.contact-link { display: inline-flex; align-items: center; min-height: 48px; color: var(--brand-dark); font-size: 1rem; font-weight: 600; letter-spacing: 0.01em; text-decoration-thickness: 1px; }
.contact-link::after { margin-left: 12px; content: "→"; transition: transform 160ms ease; }
.contact-link:hover::after { transform: translateX(4px); }
.site-footer { display: flex; width: min(1180px, calc(100% - 64px)); margin: 0 auto; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 24px 0 30px; color: var(--muted); font-size: 0.8rem; }
.site-footer nav { display: flex; gap: 28px; }
.site-footer p { margin: 0; }
.legal-main { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 54px 0 100px; }
.legal-content { max-width: 770px; min-width: 0; }
.legal-content h1 { margin-bottom: 58px; overflow-wrap: anywhere; font-size: clamp(2.7rem, 5vw, 4.8rem); }
.legal-content section { margin-bottom: 38px; }
.legal-content h2 { margin-bottom: 12px; overflow-wrap: anywhere; color: var(--ink); font-size: 1.05rem; font-weight: 650; line-height: 1.4; }
.legal-content p, .legal-content address { margin-bottom: 14px; overflow-wrap: anywhere; color: #4f5960; font-size: 0.98rem; font-style: normal; line-height: 1.75; }
.legal-content a { color: var(--brand-dark); }
.legal-date { margin-top: 54px; color: var(--muted); font-size: 0.84rem; }

@media (max-width: 680px) {
  .site-header, .home-main, .site-footer, .legal-main { width: min(100% - 40px, 1180px); }
  .site-header { padding-top: 24px; }
  .brand-logo { width: min(100%, 330px); }
  .home-main { padding: 44px 0 64px; }
  .hero { padding-left: 20px; }
  .hero::before { width: 3px; }
  h1 { margin-bottom: 24px; font-size: clamp(2.5rem, 13vw, 4rem); }
  .intro { margin-bottom: 30px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 18px; padding-bottom: 24px; }
  .site-footer nav { gap: 22px; }
  .legal-main { padding: 42px 0 72px; }
  .legal-content h1 { margin-bottom: 44px; font-size: clamp(2.2rem, 9.4vw, 2.65rem); line-height: 1.05; }
}

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