/* Modelwright Studio — dark register
   A dark-ground reading of MODELWRIGHT_STUDIO_STYLE_GUIDE.md: same semantic
   roles (cobalt = structure, pine = human/craft meaning, amber = signal),
   same DotGothic16 display face, same square/thin-border/offset-shadow
   geometry — inverted onto a charcoal ground instead of warm paper. Bright
   variants of cobalt/pine exist so text clears WCAG AA against the dark
   background; the original darker hexes remain for hairline rules and
   borders, where full-contrast tone isn't needed.

   Body copy is set in a real bitmap-font remake — IBM's actual VGA 8x16
   text-mode ROM font, not a coding-monospace approximation — via the
   Ultimate Oldschool PC Font Pack (fonts/ATTRIBUTION.txt has the credit
   this CC BY-SA license requires). A Tandy 1000 remake ships alongside it;
   swap --mw-font-body to "Tandy 1000" to try that face instead. */

@font-face {
  font-family: "IBM VGA 8x16";
  src: url("/fonts/WebPlus_IBM_VGA_8x16.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tandy 1000";
  src: url("/fonts/WebPlus_Tandy1K-II_200L.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Ground */
  --mw-bg: #1B1F21;
  --mw-bg-deep: #15181A;
  --mw-bg-raised: #22272A;

  /* Text */
  --mw-ink: #F4F0E6;
  --mw-ink-soft: #A39C8C;

  /* Structure / meaning, brightened for on-dark text and links */
  --mw-cobalt: #6E93B0;
  --mw-cobalt-dim: #35566F;
  --mw-pine: #6C9C8F;
  --mw-pine-dim: #3F5B56;

  /* Accent — the indicator lamp */
  --mw-amber: #D9A24A;

  /* Soft tints, reinterpreted as low-opacity overlays on dark */
  --mw-cobalt-soft: rgba(110, 147, 176, 0.14);
  --mw-pine-soft: rgba(108, 156, 143, 0.14);
  --mw-amber-soft: rgba(217, 162, 74, 0.16);

  /* Type */
  --mw-font-display: "DotGothic16", "M PLUS 1 Code", "Nanum Gothic Coding", "Noto Sans Mono", monospace;
  --mw-font-body: "IBM VGA 8x16", "Nanum Gothic Coding", "M PLUS 1 Code", "Noto Sans Mono", "IBM Plex Mono", "Source Code Pro", monospace;

  /* Geometry */
  --mw-border-thin: 1px;
  --mw-border-strong: 1.5px;
  --mw-radius: 0px;
  --mw-shadow-offset: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(to right, rgba(110, 147, 176, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110, 147, 176, 0.035) 1px, transparent 1px),
    var(--mw-bg);
  background-size: 18px 18px;
  color: var(--mw-ink);
  font-family: var(--mw-font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: none;
  font-smooth: never;
  text-rendering: optimizeSpeed;
}

::selection {
  background: var(--mw-amber-soft);
  color: var(--mw-ink);
}

a {
  color: var(--mw-cobalt);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--mw-amber);
}

:focus-visible {
  outline: 2px solid var(--mw-amber);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--mw-font-display);
  font-weight: normal;
  color: var(--mw-cobalt);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; margin-top: 2.5em; }
h3 { font-size: 1.1rem; color: var(--mw-pine); }

p { margin: 0 0 1.1em; }

.shell {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: var(--mw-border-strong) solid var(--mw-cobalt-dim);
  padding: 1.75rem 0 1.25rem;
}

.site-header .shell {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.wordmark {
  font-family: var(--mw-font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mw-ink);
  text-decoration: none;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--mw-amber);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--mw-ink-soft);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--mw-amber);
}

main {
  padding: 3rem 0 4rem;
}

.hero {
  padding-bottom: 1rem;
}

.tagline {
  font-family: var(--mw-font-display);
  color: var(--mw-pine);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  margin-top: -0.5rem;
}

.lede {
  font-size: 1.05rem;
  color: var(--mw-ink);
}

.card {
  border: var(--mw-border-strong) solid var(--mw-cobalt-dim);
  background: var(--mw-bg-raised);
  box-shadow: var(--mw-shadow-offset) var(--mw-shadow-offset) 0 var(--mw-cobalt-soft);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.card.pine {
  border-color: var(--mw-pine-dim);
  box-shadow: var(--mw-shadow-offset) var(--mw-shadow-offset) 0 var(--mw-pine-soft);
}

.rule {
  border: none;
  border-top: var(--mw-border-thin) solid var(--mw-pine-dim);
  margin: 2.5rem 0;
}

.meta {
  font-size: 0.8rem;
  color: var(--mw-ink-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact {
  font-family: var(--mw-font-display);
  font-size: 1.05rem;
}

.contact a { color: var(--mw-amber); }

/* Offers */

.price {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--mw-font-display);
  font-size: 0.9rem;
  color: var(--mw-amber);
  letter-spacing: 0.02em;
}

.not-for {
  font-size: 0.9rem;
  color: var(--mw-ink-soft);
  border-top: var(--mw-border-thin) dashed var(--mw-pine-dim);
  padding-top: 1.1rem;
}

/* Buttons */

a.btn {
  display: inline-block;
  font-family: var(--mw-font-display);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--mw-bg-deep);
  background: var(--mw-amber);
  border: var(--mw-border-strong) solid var(--mw-amber);
  box-shadow: var(--mw-shadow-offset) var(--mw-shadow-offset) 0 var(--mw-amber-soft);
  padding: 0.6rem 1.1rem;
  text-decoration: none;
}

a.btn:hover,
a.btn:focus-visible {
  color: var(--mw-amber);
  background: transparent;
}

.btn-text {
  font-family: inherit;
  font-size: inherit;
  color: var(--mw-cobalt);
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn-text:hover,
.btn-text:focus-visible {
  color: var(--mw-amber);
}

/* Apply page */

.apply-questions {
  padding-left: 1.4rem;
}

.apply-questions li {
  margin-bottom: 0.9rem;
}

.apply-fallback {
  font-size: 0.85rem;
  color: var(--mw-ink-soft);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* aiBLOG */

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

.post-list li {
  border-bottom: var(--mw-border-thin) solid var(--mw-pine-dim);
  padding: 1.1rem 0;
}

.post-list li:first-child { padding-top: 0; }

.post-list .meta { display: block; margin-bottom: 0.3rem; }

.post-list a {
  font-family: var(--mw-font-display);
  color: var(--mw-ink);
  text-decoration: none;
  font-size: 1.05rem;
}

.post-list a:hover,
.post-list a:focus-visible { color: var(--mw-amber); }

.empty-state {
  border: var(--mw-border-thin) dashed var(--mw-pine-dim);
  padding: 1.5rem;
  color: var(--mw-ink-soft);
  text-align: center;
}

.post h1 { margin-bottom: 0.25rem; }

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer {
  border-top: var(--mw-border-strong) solid var(--mw-cobalt-dim);
  padding: 1.75rem 0 2.5rem;
  color: var(--mw-ink-soft);
  font-size: 0.85rem;
}

.site-footer a { color: var(--mw-ink-soft); }
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--mw-amber); }

.site-footer .shell {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer .colophon {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  opacity: 0.7;
}
