/* mariajose.ai — shared styles. see DESIGN-SYSTEM.md for the rules behind these tokens. */

/* jost, self-hosted (sil open font license, see fonts/OFL.txt): one variable file, weights 300-600 */
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --amber-200: #fae0b8;
  --amber-500: #c9800f;
  --amber-700: #80520a;
  --amber-rgb: 201, 128, 15;
  --ink-900: #241c13;
  --paper-50: #f9f6f1;

  --bg: var(--paper-50);
  --text: var(--ink-900);
  --text-muted: rgba(36, 28, 19, 0.62);
  --rule: rgba(36, 28, 19, 0.09);
  --rule-strong: rgba(36, 28, 19, 0.48);
  --accent: var(--amber-500);
  --accent-rgb: var(--amber-rgb);
  --link-hover: #80520a;
  --highlight: rgba(201, 128, 15, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b140e;
    --text: #f5ebd6;
    --text-muted: rgba(245, 235, 214, 0.62);
    --rule: rgba(245, 235, 214, 0.1);
    --rule-strong: rgba(245, 235, 214, 0.42);
    --accent: #f0a838;
    --accent-rgb: 240, 168, 56;
    --link-hover: #f0a838;
    --highlight: rgba(240, 168, 56, 0.24);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

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

/* skip link: hidden until a keyboard user tabs to it */

.skip {
  position: absolute;
  top: 0.35rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.3rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  font-size: 0.85rem;
  transform: translateY(-300%);
}

.skip:focus { transform: translateY(0); }

/* main is focusable (tabindex -1) so the skip link moves focus; no ring on a whole page region */
main:focus { outline: none; }

/* the drawing sheet: ruled grid, crop marks, content column */

.sheet {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}

.ruled {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.crop {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.crop::before,
.crop::after {
  content: "";
  position: absolute;
  background: var(--rule-strong);
}
.crop::before { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.crop::after { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.crop-tl { top: 18px; left: 18px; }
.crop-bl { bottom: 18px; left: 18px; }

@media (max-width: 600px) {
  .crop-tl { top: 6px; left: 6px; }
  .crop-bl { bottom: 6px; left: 6px; }
}

.sheet > *:not(.ruled):not(.crop) { position: relative; }

/* top bar: site mark + nav */

.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule-strong);
}

.mark {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: 0.85rem;
}

.nav a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--accent);
}

/* page layout */

main {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.hero {
  max-width: 40rem;
}

.headline {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.4rem, 4.2vw + 1rem, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.headline strong {
  font-weight: 600;
  background-image: linear-gradient(transparent 66%, var(--highlight) 66%);
  padding: 0 0.05em;
}

.subhead {
  margin: 0.9rem 0 0;
  font-weight: 300;
  font-size: clamp(1.05rem, 1vw + 0.85rem, 1.3rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 34ch;
  text-wrap: balance;
}

.cta {
  margin: 1.6rem 0 0;
  font-size: 0.95rem;
}

/* dimension line: section divider with a label */

.dimension {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.dimension .tick {
  width: 1px;
  height: 9px;
  background: var(--rule-strong);
  flex-shrink: 0;
}

.dimension .line {
  flex: 0 0 2.5rem;
  height: 1px;
  background: var(--rule-strong);
}

.dimension .line.grow { flex: 1 1 auto; }

/* labels are real headings (h2) for screen readers; font: inherit keeps them looking like labels */
.dimension .label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  padding: 0 0.75em;
  font: inherit;
  white-space: nowrap;
}

/* two pulses (about 5s), then the dot rests. wcag 2.2.2: no motion that runs on past 5s without a pause control. */
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4);
  animation: pulse 2.4s ease-in-out 2;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0); }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
}

/* section = dimension line + content */

.section {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 3rem; }
}

/* bordered panel: flat, no fill, no shadow, no rounded corners */

.panel {
  border: 1px solid var(--rule-strong);
  padding: 1.25rem 1.4rem;
}

.panel-label {
  margin: 0 0 0.9rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.project-title {
  margin: 0;
  font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0.8rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1.5rem;
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.facts dt {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding-top: 0.2em;
}

.facts dd { margin: 0; max-width: 56ch; }

.panel-link {
  margin: 1.4rem 0 0;
  font-size: 0.85rem;
}

/* inner pages */

.page-title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.1rem, 3vw + 1rem, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.page-title strong {
  font-weight: 600;
  background-image: linear-gradient(transparent 66%, var(--highlight) 66%);
  padding: 0 0.05em;
}

.prose {
  margin: 0;
  max-width: 62ch;
  font-size: 1.02rem;
  line-height: 1.7;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  font-size: 1rem;
  line-height: 1.5;
}

.list li::before {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 1px;
  margin-right: 0.7rem;
  vertical-align: middle;
  background: var(--rule-strong);
}

.teaser {
  max-width: 44rem;
}

.teaser .project-title { margin-bottom: 0.6rem; }

.teaser .prose { font-size: 0.95rem; color: var(--text-muted); }

/* footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: auto;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

.foot a {
  color: var(--text-muted);
  border-bottom-color: transparent;
}

.foot a:hover,
.foot a:focus-visible {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}
