/* nicicaza.com — single stylesheet, no build step */

:root {
  --bg: #181b2c;
  --bg-raised: #20243a;
  --ink: #f2efe8;
  --ink-muted: #b9b6c4;
  --accent: #e8742f;      /* lifted from the favicon orange (#cd4a00) for contrast on navy */
  --lilac: #dec4e9;
  --rule: rgba(242, 239, 232, 0.14);

  --font-display: "Eczar", Georgia, serif;
  --font-body: "Poppins", system-ui, sans-serif;

  --measure: 66ch;
  --gutter: clamp(1rem, 4vw, 3rem);
}

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

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

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

main { flex: 1; }

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

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--lilac); }

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

::selection { background: var(--accent); color: var(--bg); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  background: rgba(24, 27, 44, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.home .site-header {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.brand-tag {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.brand:hover { color: var(--ink); }

.nav-list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--lilac); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 720px) {
  .nav-toggle { display: block; position: relative; z-index: 31; }
  .nav-list {
    position: fixed;
    inset: 0;
    z-index: 30;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--lilac);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s;
  }
  .nav-list a {
    color: var(--accent);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: lowercase;
  }
  .nav-list a:hover,
  .nav-list a[aria-current="page"] { color: var(--bg); }
  .nav-open .nav-list { visibility: visible; opacity: 1; }
  /* backdrop-filter would trap the fixed overlay inside the header */
  .nav-open .site-header { backdrop-filter: none; }
  .nav-open .nav-toggle { color: var(--bg); }
}

/* ---------- home hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 6rem var(--gutter) 3rem;
  overflow: hidden;
  text-align: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(24, 27, 44, 0.35) 0%, rgba(24, 27, 44, 0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 40rem;
}
.hero-photo {
  width: min(320px, 70vw);
  transform: rotate(-2deg);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}
.hero-lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  margin: 0;
}
.hero-gel {
  display: inline-block;
  text-wrap: balance;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  background: rgba(24, 27, 44, 0.5);
  transition: border-color 0.2s, color 0.2s;
}
.hero-gel strong { font-family: var(--font-display); color: var(--accent); }
.hero-gel:hover { border-color: var(--accent); color: var(--ink); }

/* ---------- interior pages ---------- */

.page {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) 4rem;
}
.page-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}
.page h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-top: 2.5rem;
}

.prose { max-width: var(--measure); }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.split--flip { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.split--flip > figure { order: -1; }

@media (max-width: 820px) {
  .split,
  .split--flip { grid-template-columns: 1fr; }
  .split--flip > figure { order: 0; }
}

figure { margin: 0; }
figure img,
figure video { border-radius: 6px; width: 100%; }
figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-muted);
}
.round img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }

.wide { margin: 0 0 2.5rem; }

.callout {
  max-width: var(--measure);
  margin: 2.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-raised);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding: 1.5rem var(--gutter);
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--lilac); }

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