/* Computerwise — rebuilt 2026 from the 2019 IONOS MyWebsite design.
   Mobile-first, no frameworks, no JavaScript, system fonts only. */

:root {
  --page-bg: #222222;      /* dark page surround (original) */
  --surface: #ffffff;
  --text: #474747;         /* original body text */
  --heading: #333333;
  --ink: #1a1101;          /* original dark ink used on orange */
  --orange: #ffac0d;       /* original nav highlight / footer */
  --orange-dark: #a66d00;
  --red: #d41c1c;          /* original #ef2020, darkened slightly for WCAG AA with white text */
  --purple: #5e1aa4;       /* original */
  --hero-bg: #eeeeee;      /* original header background */
  --rule: #222222;
  --navy: #0a213d;         /* logo outline colour */
  --focus: #0a58ca;
  --maxw: 960px;
  --sans: Helvetica, "Helvetica Neue", Arial, "Trebuchet MS", system-ui, sans-serif;
  --mono: "Lucida Console", Monaco, Menlo, Consolas, "DejaVu Sans Mono", monospace;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font: 1rem/1.6 var(--sans);
}

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

a { color: var(--purple); text-underline-offset: 0.15em; }
a:hover { color: var(--red); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }

/* Page frame: white column on a dark surround, as in the original */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap { padding: 0 1rem; }

/* Header + logo (single page: no navigation menu) */
.site-header { padding: 1rem 1rem 0; }
/* the thick dark rule under the logo, as in the original */
.site-header::after {
  content: "";
  display: block;
  margin-top: 1rem;
  border-top: 3px solid var(--rule);
}

.logo {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.25rem;
}
.logo img { width: 582px; max-width: 100%; }

/* "Emotion header": puzzle photo with monospace tagline */
.hero {
  position: relative;
  margin: 1rem 1rem 0;
  background: var(--hero-bg);
}
.hero picture img { width: 100%; aspect-ratio: 920 / 240; object-fit: cover; }
.hero-title {
  margin: 0;
  padding: 1rem;
  font: normal 1.1rem/1.4 var(--mono);
  color: #000;
  background: var(--hero-bg);
}
.hero-title span { display: block; }
.hero-title span + span { margin-top: 0.5em; }

/* Service teasers */
.teasers {
  list-style: none;
  margin: 1rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
.teaser {
  border-top: 3px solid var(--ink);
  padding: 0.75rem 1rem 1.25rem;
  color: #fff;
  text-align: center;
  background: var(--red);
}
.teaser:nth-child(even) { background: var(--purple); }
.teaser h2 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  line-height: 1.2;
  color: #fff;
}
.teaser p { margin: 0; font-size: 0.95rem; }

/* Content */
main { flex: 1 0 auto; }
main:focus { outline: none; }

.content { padding: 0.5rem 1rem 2rem; }
.content h1, .content h2 {
  margin: 0.75rem 0 0.5rem;
  color: var(--text);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw + 0.6rem, 2rem);
  line-height: 1.2;
}
.content p { margin: 0 0 1rem; max-width: 70ch; }

/* Home: text + contact column */
.home-columns {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.content hr { border: 0; border-top: 1px solid #bababa; margin: 1.25rem 0; }

.contact-card {
  align-self: start;
  margin-top: 0.75rem;
  padding: 1rem 1.25rem 0.25rem;
  background: #fff8e8;
  border-top: 3px solid var(--orange);
}
.content .contact-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
}
.contact-card p { margin: 0 0 0.75rem; }
.address { font-style: normal; margin: 0 0 0.75rem; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.5rem 0 1rem; }
.button {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 4px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--orange-dark);
}
.button:hover { background: #ffc24f; color: var(--ink); }
.button.secondary { background: var(--purple); color: #fff; border-color: #3f0f70; }
.button.secondary:hover { background: #7426c4; color: #fff; }

/* Footer */
.site-footer {
  background: var(--orange);
  color: var(--ink);
  padding: 1.25rem 1rem;
  font-size: 0.9rem;
}
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: #000; text-decoration-thickness: 2px; }
.site-footer p { margin: 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .wrap, .content { padding-left: 1rem; padding-right: 1rem; }
  .teasers { grid-template-columns: repeat(2, 1fr); }
  .hero-title {
    position: absolute;
    left: 10%; top: 50%;
    transform: translateY(-50%);
    padding: 0;
    background: transparent;
    font-size: clamp(1rem, 2.6vw, 1.625rem);
  }
  .hero-title span + span { margin-top: 1.2em; }
}

@media (min-width: 900px) {
  .teasers { grid-template-columns: repeat(4, 1fr); }
  .home-columns { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 2rem; }
  .contact-card { margin-top: 0.75rem; }
  .site-footer { padding: 1.25rem 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Print: replaces the old "Print" footer link */
@media print {
  body { background: #fff; color: #000; }
  .page { max-width: none; }
  .skip-link, .hero picture, .contact-actions { display: none !important; }
  .hero-title { position: static; transform: none; }
  .teaser { background: #fff !important; color: #000; border: 1px solid #000; }
  .teaser h2 { color: #000; }
  .site-footer { background: #fff; border-top: 1px solid #000; }
}
