:root {
  --paper: #eee9d9;
  --sheet: #f7f2e4;
  --ink: #212724;
  --muted: #4d594f;
  --line: #a9ad9e;
  --red: #a43628;
  --pale: #f1a092;
  --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  border-top: 8px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 "Instrument Sans", Arial, sans-serif;
}
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
::selection { background: var(--red); color: var(--sheet); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
.shell { width: min(100% - 72px, 1280px); margin-inline: auto; }
.skip { position: fixed; z-index: 2; top: 12px; left: 12px; padding: 12px; background: var(--sheet); transform: translateY(-180%); }
.skip:focus { transform: none; }
.masthead, .footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.masthead { min-height: 74px; border-bottom: 1px solid var(--ink); }
.masthead a { text-decoration: none; }
.brand { display: flex; align-items: center; gap: 12px; font: 800 2rem/.9 var(--heading); }
.brand small { margin-left: 8px; color: var(--muted); font: 500 .75rem var(--mono); vertical-align: middle; }
.portfolio { display: block; background: var(--ink); color: var(--sheet); padding: 10px 16px; font-weight: 700; }
.portfolio:hover { color: var(--sheet); background: var(--red); }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); gap: clamp(26px, 8vw, 105px); align-items: center; padding-block: clamp(34px, 5vw, 67px); }
h1 { font: 800 clamp(3rem, 6.3vw, 6rem)/.88 var(--heading); letter-spacing: -.022em; text-transform: uppercase; }
h1 em { color: var(--red); font-style: normal; }
.intro-copy p { max-width: 35ch; margin-top: 22px; font-size: 1.15rem; }
.sheet { border: 1px solid var(--ink); background: var(--sheet); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px clamp(14px, 3vw, 24px); border-bottom: 1px solid var(--ink); }
.sheet h2 { font: 700 1.85rem/1 var(--heading); text-transform: uppercase; }
.stamp, .diagram li span, .label, .platform { font: 500 .75rem/1.35 var(--mono); }
.stamp { border: 1px solid var(--red); padding: 5px 8px; color: var(--red); transform: rotate(4deg); white-space: nowrap; }
.diagram { padding: 14px clamp(14px, 3vw, 24px) 14px 30px; }
.diagram ul { list-style: none; padding: 0 0 0 22px; margin: 0; display: grid; gap: 7px; position: relative; }
.diagram ul::before { content: ""; position: absolute; inset: 19px auto 19px 0; border-left: 1px solid var(--red); }
.diagram li { position: relative; }
.diagram li::before { content: ""; position: absolute; top: 50%; left: -22px; width: 22px; border-top: 1px solid var(--red); }
.diagram li a { min-height: 41px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: clamp(8px, 2vw, 16px); padding: 5px 10px; border: 1px solid var(--line); text-decoration: none; }
.diagram li a:hover { background: #e8dfcb; border-color: var(--red); }
.diagram li strong { font: 700 clamp(1.2rem, 2vw, 1.5rem)/1 var(--heading); text-transform: uppercase; }
.diagram li span { color: var(--muted); }
.diagram li b { color: var(--red); }
.catalog { background: var(--ink); color: var(--sheet); padding-block: clamp(32px, 4vw, 62px); }
.catalog h2 { font: 700 clamp(2.65rem, 5vw, 4.25rem)/.95 var(--heading); text-transform: uppercase; margin-bottom: 22px; }
.windows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.3vw, 32px); }
.app-window { color: var(--ink); background: var(--sheet); border: 1px solid var(--ink); scroll-margin-top: 18px; min-width: 0; }
.windows .app-window:target { outline: 2px solid var(--pale); outline-offset: 4px; }
.window-bar, .window-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px clamp(12px, 2vw, 24px); }
.window-bar { border-bottom: 1px solid var(--ink); background: #e6dfcd; }
.label { color: var(--red); text-transform: uppercase; }
.platform { color: var(--muted); }
.window-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); min-height: 225px; }
.window-copy { padding: clamp(14px, 2vw, 27px); }
.window-copy h3 { font: 700 clamp(2.25rem, 4vw, 3.75rem)/.96 var(--heading); margin-bottom: 11px; }
.window-copy h3 a { text-decoration: none; }
.window-copy p { max-width: 24ch; color: var(--muted); }
.window-footer { border-top: 1px solid var(--ink); justify-content: flex-end; }
.window-footer a { font-weight: 700; padding: 4px 0; }
.preview { display: grid; align-content: center; justify-items: center; min-width: 0; padding: 15px; background: #dadccb; border-left: 1px solid var(--line); }
.preview--kible { background: #e4ded1; }
.preview--mimar-os { background: #ded7c5; }
.preview img { display: block; width: auto; height: 210px; max-width: 100%; object-fit: contain; filter: drop-shadow(2px 5px 7px #21272430); }
.detail { padding-block: 24px 44px; }
.back-link { display: inline-flex; align-items: center; min-height: 42px; gap: 9px; font-weight: 700; margin-bottom: 14px; }
.detail-body { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.detail-copy { padding: clamp(18px, 4vw, 54px); }
.detail-copy h1 { color: var(--red); }
.headline { margin: 16px 0 8px; font-size: clamp(1.25rem, 2.5vw, 1.65rem); font-weight: 700; }
.detail-copy > p { max-width: 64ch; }
.features { margin-top: 29px; }
.features h2, .download h2 { font: 700 1.9rem/1 var(--heading); }
.features dl { margin-top: 12px; }
.features dl > div { padding-block: 11px; border-top: 1px solid var(--line); }
.features dt { font-weight: 700; }
.features dd, .test-status { color: var(--muted); }
.detail-body .preview { padding: 22px 12px; }
.detail-body .preview img { height: auto; width: auto; max-height: 485px; max-width: 100%; }
.detail-body .preview figcaption { margin-top: 12px; font-size: .875rem; color: var(--muted); }
.download { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px 25px; border-top: 1px solid var(--ink); padding: 20px clamp(18px, 4vw, 54px); }
.test-status { margin-top: 5px; }
.action { display: inline-flex; justify-content: space-between; gap: 20px; background: var(--red); color: white; padding: 11px 16px; margin-top: 10px; text-decoration: none; font-weight: 700; }
.action:hover { background: #81271e; color: white; }
.privacy-link { font-weight: 600; }
.footer { min-height: 67px; font-size: .9rem; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 42px); }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  .intro, .detail-body { grid-template-columns: minmax(0, 1fr); }
  .intro-copy p { margin-top: 13px; }
  .windows { grid-template-columns: minmax(0, 1fr); }
  .detail-body .preview { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 400px) {
  .brand { gap: 8px; font-size: 1.55rem; }
  .brand img { width: 26px; height: 26px; }
  .brand small { margin-left: 4px; font-size: .625rem; }
  .portfolio { padding: 8px 10px; font-size: .875rem; }
  .diagram { padding-left: 12px; }
  .diagram ul { padding-left: 14px; }
  .diagram li::before { width: 14px; left: -14px; }
  .preview { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
