/* DMACON Technology landing — single-page, mobile-first, dark.
   Palette nods to Workbench 2.x: neutral greys with a single amber
   accent (#FF8800) standing in for a lit DMA-enable bit. Width-capped
   main column so prose stays readable on wide screens without media
   queries. Mono headings + the "$DFF096" eyebrow lean the page toward
   the low-level / retrocomputing register-map feel without going full
   theme-park. */

:root {
  --bg:          #18181C;
  --surface:     #232328;
  --text:        #ECECF0;
  --text-muted:  #9898A2;
  --accent:      #6E8FCC;       /* Workbench 2.0 cornflower blue */
  --accent-ink:  #FFFFFF;       /* white ink on the cooler accent */
  --border:      #2F2F36;
  --radius:      10px;
  --max-w:       640px;
  --mono:        ui-monospace, "SF Mono", "Menlo", "Consolas",
                 "DejaVu Sans Mono", monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main, .hero, footer {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.hero {
  padding-top: 56px;
  padding-bottom: 40px;
  text-align: center;
}

.icon {
  width: 128px;
  height: 128px;
  /* The icon already has its own rounded inner frame; a faint outer
     glow lifts it off the near-black bg. */
  /* Two stacked drop-shadows: a tighter near-shadow for grounding,
     plus a wider soft glow tinted with the accent so the icon feels
     lit rather than just floating. */
  filter:
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25))
    drop-shadow(0 10px 26px rgba(110, 143, 204, 0.25));
}

h1 {
  font-family: var(--mono);
  font-size: 2.1rem;
  font-weight: 700;
  margin: 22px 0 4px;
  letter-spacing: 0.02em;
}

/* "Technology" reads as the company-noun beside the brand-noun —
   smaller + muted so DMACON stays the loud part. */
.wordmark-tech {
  font-family: var(--mono);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.55em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: 0.35em;
  vertical-align: 0.18em;
}

.tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 14px;
}

/* Self-hosted Amiga Topaz (Kickstart 1.x ROM font), Trueschool/dMG
   TTF reconstruction. GPL-FE licence; see fonts/LICENSE.txt. The
   font is used only for the small register-address eyebrow — using
   it for body text would push the page into fan-tribute territory. */
@font-face {
  font-family: "Topaz";
  src: url("fonts/Topaz_a500_v1.0.ttf") format("truetype");
  /* `block` hides the .addr element until Topaz arrives (up to ~3s
     block period). Paired with <link rel="preload"> in the HTML so
     the font is in flight before paint. */
  font-display: block;
  font-weight: 400;
  font-style: normal;
}

/* The real Amiga DMACON address — rendered in Topaz so it reads as
   an actual line from a register dump. Decorative; aria-hidden so
   screen readers skip the hex literal. */
.addr {
  font-family: "Topaz", var(--mono);
  color: var(--accent);
  font-size: 16px;          /* multiple of 8 keeps Topaz pixel-crisp */
  letter-spacing: 0;
  margin: 0;
  opacity: 0.85;
  /* Disable subpixel/grayscale AA so the bitmap shapes stay crisp
     rather than getting smoothed into greys. */
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
  padding-bottom: 64px;
}

.contact {
  text-align: center;
  margin-top: 24px;
}

.contact .primary {
  font: inherit;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 28px;
  cursor: pointer;
}

.contact .primary:hover,
.contact .primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  filter: brightness(1.08);
}

/* Fallback for users without a configured mail client: styled as a
   muted text link, not a button, so it reads as secondary action
   without competing with the primary CTA. */
.copy-link {
  display: block;
  margin: 14px auto 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  padding: 4px 8px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(152, 152, 162, 0.4);
  text-underline-offset: 3px;
}

.copy-link:hover,
.copy-link:focus-visible {
  color: var(--accent);
  outline: none;
}

.form-status {
  margin: 10px 0 0;
  min-height: 1.4em;
  font-size: 0.9rem;
}

.form-status.ok  { color: #6BCB77; }
.form-status.err { color: #E45858; }

footer {
  padding: 24px 24px 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
