/* Huzali Beauty World — Husna Zaid portfolio
   A standalone site, served from its own document root. It shares the
   host's font files but nothing else, and it calls no external service. */

:root {
  --bone: #fbf6f2;
  --paper: #ffffff;
  --ink: #1c1210;
  --espresso: #3b2a24;
  --cocoa: #7a5a4b;
  --stone: #8d7c73;
  --rose: #a8435c;
  --rose-deep: #7c2f42;
  --line: #e6dbd2;

  --measure: 62ch;
  --wide: 1200px;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

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

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------------------------------------------------------------- type */

.display {
  font-family: Fraunces, "Iowan Old Style", Georgia, serif;
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  letter-spacing: -0.018em;
  line-height: 1.04;
}

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.4;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.65;
  color: var(--espresso);
}

.prose p { margin: 0 0 1.1em; max-width: var(--measure); }
.prose p:last-child { margin-bottom: 0; }

h1 { font-size: clamp(2.7rem, 7vw, 5rem); margin: 0; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); margin: 0; }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.3rem); margin: 0; font-weight: 600; line-height: 1.3; }

/* -------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.band { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.band + .band { border-top: 1px solid var(--line); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.rule-ink { border-top: 1px solid var(--ink); }

.grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
.cols-2 { grid-template-columns: 1fr; }
.cols-3 { grid-template-columns: 1fr; }

/* A grid item defaults to min-width:auto, so the intrinsic width of the
   photograph would set the track width and blow the layout out past the
   viewport. Every track child is allowed to shrink. */
.grid > *, .hero-grid > *, .cards > * { min-width: 0; }

@media (min-width: 820px) {
  .cols-2 { grid-template-columns: 7fr 5fr; }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ----------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 242, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  min-height: 4.25rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
}

.wordmark b {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.wordmark span {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}

.nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav a {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--cocoa);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover, .nav a:focus-visible { color: var(--rose-deep); border-bottom-color: var(--rose); }

@media (max-width: 720px) {
  .masthead-inner { flex-direction: column; align-items: flex-start; }
  .nav { flex-wrap: wrap; gap: 0 0.95rem; row-gap: 0.35rem; }
  .nav a { font-size: 0.68rem; letter-spacing: 0.04em; }
  .wordmark span { display: none; }
}

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

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 7fr 5fr; }
}

.hero .eyebrow { color: var(--rose); margin-bottom: 1.4rem; }

.hero h1 { margin-bottom: 0.4rem; }

.hero-role {
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  color: var(--cocoa);
  letter-spacing: 0.005em;
  margin: 0 0 1.6rem;
}

.hero .lede { max-width: 34rem; margin-bottom: 2rem; }

.portrait { position: relative; }
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 842 / 1264;
  object-fit: cover;
  background: #5c4033;
}

.portrait figcaption {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ------------------------------------------------------------ actions */

.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-solid { background: var(--ink); color: var(--bone); }
.btn-solid:hover, .btn-solid:focus-visible { background: var(--rose-deep); border-color: var(--rose-deep); }

.btn-ghost { color: var(--ink); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--ink); color: var(--bone); }

/* -------------------------------------------------------- section head */

.head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.head .eyebrow { color: var(--rose); margin-bottom: 1rem; }
.head .lede { margin-top: 1.1rem; max-width: 38rem; }

/* ----------------------------------------------------------- lede band */

.quoteband {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.quoteband blockquote {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.32;
  letter-spacing: -0.012em;
  max-width: 40ch;
}

.quoteband figcaption {
  margin-top: 1.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8bdb4;
}

/* --------------------------------------------------------------- lists */

.checklist { list-style: none; margin: 0; padding: 0; }

.checklist li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--espresso);
}

.checklist li:last-child { border-bottom: 1px solid var(--line); }

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.85rem;
  height: 1px;
  background: var(--rose);
}

.numbered { list-style: none; margin: 0; padding: 0; counter-reset: step; }

.numbered li {
  counter-increment: step;
  position: relative;
  padding: 1.05rem 0 1.05rem 3rem;
  border-top: 1px solid var(--line);
}

.numbered li:last-child { border-bottom: 1px solid var(--line); }

.numbered li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--rose);
  font-weight: 600;
}

.numbered strong { display: block; font-weight: 600; color: var(--ink); }
.numbered span { display: block; margin-top: 0.2rem; font-size: 0.93rem; color: var(--cocoa); }

/* ------------------------------------------------------------- cards */

.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--bone); padding: 1.6rem 1.5rem 1.7rem; }
.card .eyebrow { color: var(--stone); margin-bottom: 0.7rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; font-size: 0.93rem; color: var(--cocoa); line-height: 1.65; }

/* --------------------------------------------------------- recognition */

.awards { list-style: none; margin: 0; padding: 0; }

.awards li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.awards li:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 760px) {
  .awards li { grid-template-columns: 13rem 1fr; gap: 2rem; align-items: baseline; }
}

.awards .award-name { font-weight: 600; color: var(--ink); }
.awards .award-body { font-size: 0.94rem; color: var(--cocoa); }
.awards .award-body em { display: block; margin-top: 0.25rem; font-size: 0.78rem; letter-spacing: 0.05em; color: var(--stone); font-style: normal; text-transform: uppercase; }

/* --------------------------------------------------------------- sdg */

.sdg { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.6rem; }

.sdg span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  color: var(--cocoa);
  background: var(--paper);
}

.sdg span b { color: var(--rose); font-weight: 600; margin-right: 0.4rem; }

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

.footer { border-top: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 4rem) 0 2.5rem; }

.footer-top { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }

.footer-note { font-size: 0.82rem; color: var(--stone); max-width: 30rem; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { font-size: 0.8rem; color: var(--cocoa); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--rose-deep); border-bottom-color: var(--rose); }

/* ------------------------------------------------------------ reveal */

/* The scroll reveal rises into place. It never hides anything: opacity is
   never touched, so a visitor without JavaScript, a crawler, or a print
   stylesheet sees the complete page. This site is plain static HTML with no
   prerender pass, so there is no baking step to rely on. */
.js .reveal { transform: translateY(12px); transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.js .reveal.is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------ a11y */

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bone); padding: 0.75rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

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

::selection { background: var(--rose); color: var(--bone); }
