:root {
  color-scheme: light;
  --paper: #f2efe8;
  --paper-deep: #e7e1d6;
  --ink: #151515;
  --muted: #69665f;
  --line: #cfc8bb;
  --accent: #c84e32;
  --white: #fffdf8;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; }

.page-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(242, 239, 232, .96);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand img {
  width: 46px;
  height: 28px;
  object-fit: contain;
}

.site-header nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header nav a,
.footer-links a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
}

.site-header nav a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.site-header nav .nav-cta {
  margin-left: 8px;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.menu-button {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 9px 12px;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  gap: 70px;
  align-items: end;
  min-height: 700px;
  padding: 92px 0 70px;
}

.hero-main { max-width: 890px; }

.kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.kicker-light { color: #d9907f; }

h1, h2, h3, p { margin-top: 0; }

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.045em;
}

h1 {
  max-width: 980px;
  margin-bottom: 28px;
  font-size: clamp(64px, 9vw, 132px);
  line-height: .88;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: .96;
}

h3 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 0;
  color: #3e3b36;
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: var(--accent); border-color: var(--accent); }
.button-light { background: transparent; color: var(--ink); }
.button-light:hover { background: var(--white); }

.plain-card {
  padding: 28px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.plain-card p {
  color: #48443e;
  font-size: 17px;
  line-height: 1.65;
}

.plain-card .plain-label {
  margin-bottom: 28px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.plain-card a,
.text-link {
  display: inline-block;
  margin-top: 18px;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

.marquee {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-block: 1px solid var(--line);
  background: var(--paper-deep);
  scrollbar-width: none;
}

.marquee::-webkit-scrollbar { display: none; }

.marquee span {
  flex: 0 0 auto;
  padding: 17px 30px;
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section { padding: 130px 0; }
.section-intro { max-width: 920px; margin-bottom: 60px; }

.product-list { border-top: 1px solid var(--ink); }

.product-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: start;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}

.product-number {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.product-row p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.product-state {
  justify-self: end;
  padding-top: 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ink-section {
  padding: 120px 0;
  background: var(--ink);
  color: var(--white);
}

.ink-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
}

.principle-list { border-top: 1px solid #4c4c4c; }

.principle-list article {
  padding: 26px 0 28px;
  border-bottom: 1px solid #4c4c4c;
}

.principle-list h3 { font-size: 22px; }
.principle-list p { margin-bottom: 0; color: #bcb8b0; font-size: 16px; line-height: 1.65; }

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.body-copy {
  padding-top: 34px;
  color: #4e4a43;
  font-size: 19px;
  line-height: 1.7;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: end;
  margin-bottom: 100px;
  padding: 54px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.final-cta h2 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(42px, 5vw, 68px);
}

.final-cta .hero-actions { margin-top: 0; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  padding: 32px 0 46px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.page-hero {
  padding: 90px 0 60px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 1000px;
  font-size: clamp(58px, 8vw, 110px);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.content-section { padding: 70px 0 110px; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.info-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
}

.info-card p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }

.download-group {
  margin-bottom: 46px;
  border-top: 1px solid var(--ink);
}

.download-group h2 {
  margin: 28px 0 26px;
  font-size: clamp(36px, 4vw, 56px);
}

.download-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.download-item:last-child { border-bottom: 1px solid var(--line); }
.download-item strong { display: block; margin-bottom: 4px; }
.download-item small { color: var(--muted); font-size: 14px; }
.download-item a { border-bottom: 1px solid currentColor; font-weight: 700; }

.notice {
  margin: 0 0 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: var(--paper-deep);
  color: #4d4942;
}

.status-panel {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}

.status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.status-row strong { display: block; margin-bottom: 4px; }
.status-row small { color: var(--muted); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8a867d;
}

.status-badge.ok::before { background: #2f8b57; }
.status-badge.warn::before { background: #c97a24; }
.status-badge.down::before { background: #b83b31; }

.code-note {
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #e8e2d8;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
}

.admin-box {
  max-width: 760px;
  padding: 34px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.admin-box p { color: var(--muted); }

@media (max-width: 980px) {
  .hero,
  .ink-grid,
  .two-column,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero { min-height: auto; gap: 50px; }
  .plain-card { max-width: 560px; }
  .product-row { grid-template-columns: 54px minmax(0, 1fr); }
  .product-state { grid-column: 2; justify-self: start; }
  .final-cta .hero-actions { margin-top: 24px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer .brand { justify-self: center; }
  .footer-links { justify-content: center; }
  .site-footer p { text-align: center; }
}

@media (max-width: 760px) {
  .site-header { min-height: 68px; padding-inline: 16px; }
  .menu-button { display: block; }
  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .site-header nav.open { display: grid; }
  .site-header nav a { padding: 12px 0; }
  .site-header nav .nav-cta { margin-left: 0; border: 0; }

  .page-shell { width: min(calc(100% - 24px), var(--max)); }
  .hero { padding: 70px 0 54px; }
  h1 { font-size: clamp(54px, 18vw, 82px); }
  h2 { font-size: clamp(40px, 13vw, 62px); }
  .hero-copy { font-size: 18px; }
  .hero-actions .button { width: 100%; }
  .marquee span { padding-inline: 20px; }
  .section { padding: 90px 0; }
  .product-row { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .product-row p { font-size: 16px; }
  .ink-section { padding: 90px 0; }
  .ink-grid, .two-column { gap: 36px; }
  .body-copy { padding-top: 0; font-size: 17px; }
  .final-cta { margin-bottom: 70px; padding: 28px 22px; }
  .content-grid { grid-template-columns: 1fr; }
  .download-item, .status-row { grid-template-columns: 1fr; gap: 12px; }
  .status-badge { justify-self: start; }
}
