/* Amagnus Designs — studio site. Self-hosted Inter / Inter Tight (OFL). No CDN. Colors live in :root. */

:root {
  /* Surfaces */
  --bg: #FFFFFF;             /* page, header, default surfaces */
  --bg-alt: #F4F6F8;         /* alternating sections and footer */
  --border: #E3E7EB;         /* borders, dividers, horizon-line motif */
  --well: #F4F6F8;           /* image wells */

  /* Text */
  --ink: #14181C;            /* primary text */
  --ink-secondary: #5B6670;  /* captions, notes, secondary text */

  /* Accent — use ONLY for primary buttons, links, and the active state.
     Never for backgrounds or decoration. Tint is for badges / selected states only. */
  --accent: #0F766E;         /* deep teal */
  --accent-hover: #115E59;   /* hover / pressed */
  --accent-tint: #E6F2F1;    /* badges and selected states only */

  --font-display: "Inter Tight", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --radius: 6px;
  --wrap: 1200px;
  --gap: 1.5rem;
  --tracking-display: -0.025em;
}

/* Self-hosted latin subsets. Paths are relative to this CSS file. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-tight-latin-600-normal.woff2") format("woff2");
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.6;
}

main { flex: 1 0 auto; }
main:focus { outline: none; }
.small { font-size: 0.9rem; color: var(--ink-secondary); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

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

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

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

.skip-link {
  position: absolute; left: 1rem; top: 0; transform: translateY(-110%); z-index: 100;
  background: var(--bg); color: var(--ink);
  padding: 0.6rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.skip-link:focus { transform: none; top: 1rem; color: var(--ink); }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border); /* horizon-line motif */
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: var(--tracking-display);
}

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem;
}
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.page-head { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.lede { font-size: 1.25rem; color: var(--ink-secondary); max-width: 38rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.5em; }

/* Hero */
.hero { padding: 2.5rem 0 3.5rem; }
.hero-title { font-size: clamp(2.5rem, 9vw, 4.5rem); margin-bottom: 0.2em; }
.hero-fact { font-family: var(--font-display); font-size: clamp(1.35rem, 3.4vw, 1.75rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; max-width: 38rem; margin-bottom: 1rem; }

/* Buttons: primary uses accent only here; outline stays ink on white */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { background: var(--bg-alt); color: var(--ink); border-color: var(--ink); }
/* Renders */
.render { margin: 0; }
.render-well {
  position: relative;
  background: var(--well);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.render-well img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.badge {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 1;
  background: var(--accent-tint);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.render figcaption { font-size: 0.95rem; margin-top: 0.6rem; color: var(--ink-secondary); }

/* Grids / cards */
.grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 2rem; }
.card {
  background: transparent;
  border-radius: var(--radius);
  padding: 0;
  border: 0;
}
/* Footer: slim, light, 1px horizon rule — no dark band, no cream */
.site-footer {
  background: var(--bg-alt);
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  margin-top: auto;
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; }
.footer-inner .small { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.95rem; font-weight: 500; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  body { font-size: 1.1875rem; }
  .hero { padding: 4rem 0 5rem; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}

#contact-form label { display: block; font-weight: 700; margin: 1rem 0 0.4rem; }
#contact-form :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem;
  border: 1px solid var(--ink-secondary);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--bg);
  font: inherit;
}
#contact-form button { margin-top: 1rem; }
#contact-form button:disabled { cursor: wait; }
#contact-status { margin-top: 1rem; }

/* Interaction layer: quiet, CSS-only, off under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0) scale(0.98); }
  .site-nav a { transition: color .18s ease, border-color .18s ease; }
  a { transition: color .15s ease; }
  #contact-form :is(input, select, textarea) { transition: border-color .15s ease, box-shadow .15s ease; }
}
#contact-form :is(input, select, textarea):focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
