:root {
  --bg: #fff5f7;
  --accent: #be185d;
  --secondary: #a16207;
  --ink: #101318;
  --muted: #667085;
  --paper: #ffffff;
  --paper-2: #f7f8fb;
  --line: rgba(16,19,24,.14);
  --shadow: 0 36px 90px rgba(16,24,40,.13);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 84%, #ffffff), var(--bg) 62%, color-mix(in srgb, var(--bg) 74%, #eef2f7)),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: .11;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.site-header,
.hero,
.brand-strip,
.workbench,
.proof-section,
.contact-section,
.site-footer {
  width: min(calc(100% - 32px), 1280px);
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.brand img { width: clamp(210px, 24vw, 320px); max-width: min(52vw, 320px); height: auto; }
nav { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; font-weight: 850; }
nav a { padding: 11px 12px; border-radius: 8px; }
nav a:hover { color: var(--ink); background: var(--paper-2); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(380px, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  min-height: calc(100vh - 104px);
  padding: clamp(64px, 9vw, 120px) 0 clamp(42px, 6vw, 82px);
}
.hero-copy { min-width: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 100%;
  margin-bottom: 22px;
  font-size: clamp(54px, 7.8vw, 118px);
  line-height: .86;
  letter-spacing: 0;
  text-wrap: balance;
}
.template-portfolio h1,
.template-blog h1,
.template-lifestyle h1,
.template-news h1 { font-family: var(--serif); font-weight: 760; }
.template-science h1,
.template-reference h1 { font-size: clamp(48px, 5.7vw, 84px); }
.hero-line {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 850;
  line-height: 1.04;
}
.hero-body,
p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}
.hero-body { max-width: 720px; font-size: clamp(17px, 1.45vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}
.button.primary,
.segmented .active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border-color: color-mix(in srgb, var(--accent) 70%, #000);
}
.button.secondary,
.segmented a {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
}
.hero-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; aspect-ratio: 1.58; object-fit: cover; }
.brand-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}
.brand-strip article {
  min-height: 130px;
  padding: 22px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.brand-strip strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: .85;
}
.brand-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.workbench,
.proof-section,
.contact-section {
  margin-top: 28px;
  scroll-margin-top: 118px;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  box-shadow: 0 22px 70px rgba(2, 6, 23, .08);
}
.workbench {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 58px);
}
.workbench-copy { min-width: 0; }
.section-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.85vw, 56px);
  line-height: .98;
  letter-spacing: 0;
  text-wrap: balance;
}
.control-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.segmented a {
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}
label { display: grid; gap: 8px; color: var(--muted); font-weight: 850; }
input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
}
textarea { resize: vertical; }
.showcase-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr);
  gap: 16px;
}
.feature-card,
.item-card,
.confirmation {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.feature-card {
  display: grid;
  min-height: 360px;
  align-content: end;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent),
    var(--paper);
}
.feature-card span,
.item-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.feature-card h3 { font-size: clamp(34px, 4.5vw, 64px); line-height: .92; }
.feature-card strong {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.item-card {
  min-height: 220px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(2, 6, 23, .12);
}
.item-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 900;
}
.proof-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, .65fr);
  gap: 26px;
  align-items: start;
}
.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.proof-list span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 900;
}
.contact-form {
  display: grid;
  gap: 12px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 58px;
  color: var(--muted);
}
.site-footer strong { color: var(--ink); }
.template-news .workbench { background: #fff; box-shadow: none; }
.template-directory .item-grid,
.template-reference .item-grid,
.template-dynamic .item-grid { grid-template-columns: 1fr; }
.template-portfolio .item-card,
.template-lifestyle .item-card { min-height: 280px; }
.template-security .feature-card { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); }
@media (max-width: 960px) {
  .site-header { align-items: start; }
  nav { display: none; }
  .hero,
  .workbench,
  .showcase-grid,
  .proof-section,
  .contact-section {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding-top: 54px; }
  .brand-strip { grid-template-columns: 1fr; }
  .item-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header,
  .hero,
  .brand-strip,
  .workbench,
  .proof-section,
  .contact-section,
  .site-footer { width: min(calc(100% - 22px), 1280px); }
  h1 { font-size: clamp(46px, 16vw, 72px); }
  .hero-line { font-size: clamp(22px, 8vw, 34px); }
  .hero-media img { aspect-ratio: 1.08; }
  .site-footer { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
