/* ===== aevis | style.css ===== */

/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap");

/* Other stylesheets */
@import url("css/build.css");
@import url("css/anime.css");
@import url("css/media.css");

/* ===== Theme variables ===== */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --teal: #bcdde3;
  --teal-deep: #5f9ea8;
  --navy: #12263a;
  --text: #12263a;
  --muted: #5b6b7a;
  --line: rgba(18, 38, 58, 0.12);
  --btn-bg: #12263a;
  --btn-text: #ffffff;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 18px;
  --radius-pill: 999px;
  --max-width: 1120px;
  --nav-height: 72px;
  --ease: 0.3s ease;
}

[data-theme="dark"] {
  --bg: #0b1118;
  --surface: #131c26;
  --teal: #16303a;
  --teal-deep: #7cc1cc;
  --navy: #eaf1f5;
  --text: #eaf1f5;
  --muted: #9aabba;
  --line: rgba(234, 241, 245, 0.14);
  --btn-bg: #eaf1f5;
  --btn-text: #0b1118;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background var(--ease), color var(--ease);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
  color: var(--muted);
  font-size: 1rem;
}

.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

/* ===== Helpers ===== */
.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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