:root {
  --bg: #e6e4e0;
  --sheet: #f1efeb;
  --fg: #1c1c1c;
  --muted: #5c5c5c;
  --subtle: #7a7874;
  --accent: #f50600;
  --rule: #c5c1ba;
  --font-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --measure: 42rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 70% at 50% 8%, rgb(255 255 255 / 0.32), transparent 62%),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 5px,
      rgb(28 28 28 / 0.016) 5px,
      rgb(28 28 28 / 0.016) 6px
    );
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: var(--fg);
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, var(--rule));
  text-underline-offset: 0.18em;
  transition: color 150ms var(--ease), text-decoration-color 150ms var(--ease);
}

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

a:focus-visible,
.nav-toggle-label:focus-visible,
.nav-toggle:focus-visible + .nav-toggle-label {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 40;
  padding: 0.5rem 0.75rem;
  background: var(--fg);
  color: var(--sheet);
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.accent-bar {
  height: 2px;
  background: var(--accent);
}

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

@media (min-width: 720px) {
  .wrap {
    width: min(72rem, calc(100% - 3rem));
  }
}

.site-header {
  padding: 1.5rem 0 1.15rem;
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  text-decoration: none;
  color: var(--fg);
}

.brand:hover {
  color: var(--fg);
}

.logo {
  display: block;
  width: 5.5rem;
  height: auto;
  flex-shrink: 0;
  color: var(--fg);
}

@media (min-width: 720px) {
  .logo {
    width: 7rem;
  }
}

.brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

@media (max-width: 419px) {
  .brand-tag {
    display: none;
  }
}

.header-tools {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
}

.lang {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lang a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 0.55rem;
  color: var(--subtle);
  text-decoration: none;
}

.lang a.is-active {
  color: var(--fg);
}

.lang a:hover {
  color: var(--accent);
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav-toggle-label {
  display: none;
}

.menu {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--sheet) 70%, transparent);
}

.menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.35rem 0;
  list-style: none;
}

.menu a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.menu a:hover,
.menu a.is-active {
  color: var(--fg);
}

.menu a.is-active {
  box-shadow: inset 0 -2px 0 var(--accent);
}

@media (max-width: 839px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 0.7rem;
    border: 1px solid var(--rule);
    background: var(--sheet);
    color: var(--fg);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .menu {
    display: none;
    border-bottom: 1px solid var(--rule);
  }

  .nav-toggle:checked ~ .menu {
    display: block;
  }

  .menu ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
  }

  .menu a {
    width: 100%;
    padding: 0.15rem 0;
  }

  .menu a.is-active {
    box-shadow: inset 3px 0 0 var(--accent);
  }
}

@media (min-width: 840px) {
  .nav-toggle-label {
    display: none !important;
  }

  .menu {
    display: block !important;
  }

  .menu ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.15rem 0.1rem;
  }

  .menu a {
    padding: 0 0.9rem;
  }
}

.content {
  flex: 1;
  width: min(var(--measure), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.content--wide {
  width: min(58rem, calc(100% - 2rem));
}

.content h1,
.content h2,
.content h3 {
  text-wrap: balance;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.content h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.6rem);
  line-height: 1.15;
}

.content h2 {
  margin: 2.25rem 0 0.85rem;
  color: var(--accent);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 550;
}

.content h3 {
  margin: 1.75rem 0 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.content p,
.content li {
  color: var(--fg);
  text-wrap: pretty;
}

.content p {
  margin: 0 0 1rem;
}

.content ul {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
}

.content li {
  margin: 0.35rem 0;
}

.content li::marker {
  color: var(--accent);
}

blockquote {
  margin: 0 0 1.5rem;
  padding: 0.2rem 0 0.2rem 1.15rem;
  border-left: 2px solid var(--accent);
}

blockquote p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.4;
}

figure {
  margin: 1.25rem 0 1.5rem;
}

figure img {
  display: block;
  width: 100%;
  background: var(--sheet);
  outline: 1px solid rgb(28 28 28 / 0.08);
  outline-offset: -1px;
}

.embed {
  position: relative;
  margin: 0 0 1.75rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sheet);
  outline: 1px solid rgb(28 28 28 / 0.08);
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.customers {
  columns: 1;
  column-gap: 2rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .customers {
    columns: 2;
  }
}

.customers li {
  margin: 0;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule);
  break-inside: avoid;
  font-size: 0.92rem;
  line-height: 1.35;
}

.customers li::marker {
  content: "";
}

.filelist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.filelist li {
  margin: 0 0 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--sheet);
  outline: 1px solid rgb(28 28 28 / 0.08);
}

.filelist a {
  font-weight: 600;
  text-decoration: none;
}

.filelist a:hover {
  text-decoration: underline;
}

.filelist span {
  display: block;
  margin-top: 0.35rem;
  color: var(--subtle);
  font-size: 0.8rem;
}

.notice {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--accent);
  background: var(--sheet);
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-card {
  padding: 1.25rem 1.35rem;
  background: var(--sheet);
  outline: 1px solid rgb(28 28 28 / 0.08);
}

.contact-card p {
  margin: 0;
  line-height: 1.7;
}

.site-footer {
  margin-top: auto;
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid var(--rule);
  color: var(--subtle);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

.footer-top {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

  a,
  .menu a,
  .lang a {
    transition: none;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .accent-bar,
  .menu,
  .nav-toggle-label,
  .skip,
  .footer-top,
  .embed {
    display: none !important;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .content {
    width: auto;
    padding: 0;
  }
}
