/* danielaliscio.com — personal site
   Colors/fonts taken from the live Simvoly theme (Nov 2026 public HTML). */

:root {
  --yellow: #ffdf55;
  --ink: #3e3e3e;
  --ink-dark: #1f232b;
  --ink-soft: #6a6a6a;
  --hero: #303339;
  --overlay: rgba(77, 112, 132, 0.567);
  --teal: #028090;
  --teal-2: #00a896;
  --light: #f2f3f7;
  --band: #f6f7f9;
  --white: #ffffff;
  --footer: #3e3e3e;
  --green: #489519;
  --hover-blue: #4eb3ea;
  --max: 1100px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  min-height: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-2); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header — yellow bar, as on the live site */
.site-header {
  background: var(--yellow);
  position: sticky; top: 0; z-index: 40;
}
.header-inner {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-height: var(--header-h);
}
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
}
.nav a {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 10px 14px;
  text-transform: none;
}
.nav a + a {
  border-left: 1px solid var(--footer);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}
.nav a:hover { background: var(--hover-blue); color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px; height: 2px;
  background: #3e3e3e;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* Homepage hero: B&W portrait on the right, black type on the light wall */
.hero-home {
  position: relative;
  background-color: var(--hero);
  background-image: url("/assets/hero-home.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 52% 0%;
  min-height: 420px;
}
.hero-home::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--overlay);
  pointer-events: none;
}
.hero-home .hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  padding: 4.5rem 0 5rem;
  min-height: 420px;
  align-items: start;
}
.hero-home h1 {
  margin: 0 0 1rem;
  color: #000;
  font-size: clamp(1.6rem, 3.4vw, 2.625rem); /* 42px at desktop */
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-home .copy {
  padding-right: 1.5rem;
  max-width: 34rem;
}
.hero-home .tagline {
  display: inline-block;
  margin: 0;
  color: var(--light);
  background: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  padding: 0.25em 0.45em;
}

/* Project tiles */
.tiles-band {
  background: var(--band);
  padding: 2.5rem 0 3rem;
}
.tiles {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tile {
  background: var(--white);
  text-align: center;
  padding: 2rem 1.4rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
}
.tile.tile-muted { background: var(--light); }
.tile .tile-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 220px;
  min-height: 140px;
  margin: 0 auto 1.25rem;
}
.tile .tile-media img {
  margin-inline: auto;
  width: auto;
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.tile a.tile-media:hover img { transform: scale(1.04); }
.tile h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  line-height: 1.35;
}
.tile .tile-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;

  margin-top: auto;
}
.tile .tile-link:hover { color: var(--teal); }
.tile .tile-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  margin-top: auto;
}

/* Writing page: full-bleed portrait, 50% black overlay, light type */
.hero-writing {
  position: relative;
  background-color: #111;
  background-image: url("/assets/hero-writing.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  min-height: 70vh;
}
.hero-writing::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.hero-writing .hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
  padding: 3.5rem 0 4.5rem;
  max-width: 820px;
}
.hero-writing h1 {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.625rem);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  max-width: 16ch;
}
.btn-apply {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1em;
  background: var(--green);
  color: var(--light);
  border: 1px solid #000;
  padding: 0.7rem 1.15rem;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  margin: 0 0 2rem;
}
.btn-apply .btn-top {
  font-size: 16px;
  color: var(--light);
  text-transform: uppercase;
}
.btn-apply .btn-bottom {
  font-size: 14px;
  color: #000;
  text-transform: uppercase;
}
.btn-apply:hover { filter: brightness(1.08); color: var(--light); }
.hero-writing .lede {
  color: var(--light);
  font-size: clamp(1.05rem, 2.2vw, 1.75rem); /* 28px at desktop */
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: var(--light);
  padding: 1.35rem 0 1.5rem;
  text-align: center;
}
.site-footer p,
.site-footer .copyright {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--light);
}
.site-footer a { color: var(--light); }
.site-footer a:hover { color: var(--yellow); }
.site-footer .x-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  vertical-align: middle;
}
.site-footer .x-link svg {
  width: 14px; height: 14px;
  fill: currentColor;
}

/* 404 */
.page-plain {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 4rem auto 5rem;
  text-align: center;
}
.page-plain h1 { font-size: 2rem; }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .header-inner { justify-content: flex-end; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--yellow);
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem 0 0.8rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  }
  .nav a { padding: 0.85rem 1.4rem; }
  .nav a + a { border-left: 0; border-top: 1px solid rgba(62,62,62,0.25); }
  .site-header.is-open .nav { display: flex; }

  .hero-home .hero-inner {
    grid-template-columns: 1fr;
    padding: 3rem 0 10rem;
    min-height: 520px;
  }
  /* Keep the black headline readable when the face fills more of the frame */
  .hero-home .copy {
    background: rgba(255,255,255,0.78);
    padding: 1rem 1rem 1.1rem;
    max-width: 36rem;
  }
  .tiles { grid-template-columns: 1fr; gap: 1rem; }
  .hero-writing .hero-inner { padding: 3rem 0 3.5rem; }
}
