/* Model Portfolio Lab — global styles
   Premium editorial / model-agency feel: neutral palette, large type,
   generous whitespace, restrained UI. No gradients, no cartoons. */

:root {
  --ink: #111111;
  --ink-soft: #444444;
  --muted: #6b6b6b;
  --paper: #ffffff;
  --paper-soft: #f6f5f2;
  --line: #e3e1dc;
  --accent: #111111;
  --max: 1080px;
  --measure: 66ch;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman",
    serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

a:hover {
  color: #000;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Layout helpers ---------- */

.container {
  /* Halved side gutters vs the original 2.5rem — tighter editorial grid. */
  width: min(var(--max), 100% - 1.25rem);
  margin-inline: auto;
}

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

.section + .section {
  border-top: 1px solid var(--line);
}

.section--soft {
  background: var(--paper-soft);
}

.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.section--dark a {
  color: var(--paper);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.section--dark .eyebrow {
  color: #b9b9b9;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 3.9rem);
}

h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1.15rem;
  max-width: var(--measure);
}

.lede {
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.25rem;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Mobile menu toggle — hidden on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(4.5rem, 11vw, 8.5rem) clamp(3rem, 7vw, 5.5rem);
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

/* Editorial photo backdrop for vertical/umbrella heroes.
   Uses local SVG assets only — no external hotlinks. */
.hero--modeling {
  background-image: url('/images/bg-modeling.svg');
}

.hero--architecture {
  background-image: url('/images/bg-architecture.svg');
}

.hero--fashion {
  background-image: url('/images/bg-fashion.svg');
}

.hero--home {
  background-image: url('/images/bg-home.svg');
}

.hero--dark::before {
  background: rgba(17, 17, 17, 0.82);
}

.hero--dark {
  color: #fff;
}

.hero--dark .eyebrow,
.hero--dark .lede {
  color: #cfcfcf;
}

.hero h1 {
  max-width: 18ch;
}

.hero .lede {
  margin-top: 1.25rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
  color: var(--paper);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  opacity: 1;
}

.btn--dark {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* ---------- Cards / grid ---------- */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.card {
  border: 1px solid var(--line);
  padding: 1.75rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card h3 {
  margin: 0;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.card a.card-link {
  margin-top: auto;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  align-self: flex-start;
}

.card a.card-link:hover {
  border-color: var(--ink);
}

/* ---------- Guide / article prose ---------- */

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin-top: 2.6rem;
}

.prose h3 {
  margin-top: 2rem;
}

.prose p,
.prose li {
  color: #2c2c2c;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
  margin: 0 0 1.15rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.4rem;
  border-left: 2px solid var(--ink);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-soft);
}

.prose strong {
  font-weight: 600;
}

.prose .image-note {
  border: 1px dashed var(--line);
  background: var(--paper-soft);
  padding: 1.1rem 1.3rem;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 1.75rem 0;
}

/* ---------- Article header ---------- */

.article-header {
  padding-block: clamp(3rem, 7vw, 5rem) 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.article-header h1 {
  max-width: 22ch;
  margin-bottom: 1.1rem;
}

.article-header .lede {
  margin: 0;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

/* ---------- Sources ---------- */

.sources {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.sources ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.sources li {
  margin-bottom: 0.35rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
}

.cta-band h2 {
  max-width: 24ch;
  margin-inline: auto;
}

.cta-band p {
  margin-inline: auto;
  color: var(--ink-soft);
}

.section--dark .cta-band p {
  color: #c9c9c9;
}

/* ---------- Guide index ---------- */

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

.guide-list li {
  border-bottom: 1px solid var(--line);
}

.guide-list a {
  display: block;
  padding: 1.25rem 0.25rem;
  text-decoration: none;
}

.guide-list a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guide-list h3 {
  margin: 0 0 0.35rem;
}

.guide-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.group-heading {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.75rem 0 0.75rem;
}

.group-heading:first-of-type {
  margin-top: 0;
}

/* ---------- Examples ---------- */

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}

.example-slot {
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.example-slot .slot-media {
  aspect-ratio: 3 / 4;
  background: var(--paper-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.example-slot .slot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot-body {
  padding: 1.1rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.slot-body .slot-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.slot-body h3 {
  font-size: 1.12rem;
  margin: 0;
}

.slot-body p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 0;
}

.placeholder-label {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}

.placeholder-label small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  opacity: 0.75;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
  padding-block: 3.5rem 2.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin-bottom: 2.75rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40ch;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

.site-footer nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Comp card preview ---------- */

.comp-card {
  font-family: Helvetica, Arial, sans-serif;
}

.comp-card .cc-lead {
  flex: 0 0 48%;
  background: #e9e7e2;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: #888;
  font-family: var(--font-serif);
  font-size: 1rem;
}

.comp-card .cc-body {
  padding: 0.9rem 1rem 0.6rem;
}

.comp-card .cc-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.comp-card .cc-stats {
  font-size: 0.68rem;
  color: #444;
  line-height: 1.5;
}

.comp-card .cc-imgs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  padding: 0 0.6rem 0.6rem;
}

.comp-card .cc-img {
  background: #e9e7e2;
  background-size: cover;
  background-position: center;
  aspect-ratio: 5 / 4;
}

.comp-card .cc-img-empty {
  grid-column: 1 / -1;
  background: #f2f0ec;
  color: #888;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.comp-card .cc-contact {
  border-top: 1px solid #ddd;
  padding: 0.55rem 1rem;
  font-size: 0.62rem;
  color: #666;
}

/* ---------- Misc ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    padding-block: 0.5rem 0.25rem;
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    padding-top: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
