/* SEO Signals Lab: hand-built replacement for the Duda export.
   Same look (Sora text, Helvetica hero, dark #2f3330 header/footer, green pill CTA), no Duda runtime. */

:root {
  --ink: #000000;
  --green: #4bca78;
  --green-dark: #3db866;
  --white: #ffffff;
  --dark: #2f3330;
  --light: #f4f4f4;
  --red: #e74c3c;
  --red-dark: #c0392b;
  --wrap: 1200px;
  --header-h: 86px;
}

* { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font: 400 18px/1.5 "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 40px);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--dark);
  transition: background-color .2s ease;
}
/* home page: header floats over the hero photo, turns solid once scrolled */
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; }
.home .site-header.solid { background: var(--dark); }

.nav {
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
  padding-inline: 20px;
}
.brand { display: block; flex: none; }
.brand img { width: 169px; height: auto; }

.nav-links {
  list-style: none; margin: 0 0 0 auto; padding: 0;
  display: flex; align-items: center;
}
.nav-links a {
  position: relative; display: block; padding: 0 20px;
  color: var(--white); text-decoration: none;
  font-size: 16px; letter-spacing: .03em;
}
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: -6px;
  border-top: 2px solid currentColor;
}
.nav-links a:hover { color: var(--green); }
.nav-links .nav-cta a {
  display: flex; align-items: center; justify-content: center;
  width: 220px; height: 52px; margin-left: 30px; padding: 0 12px;
  background: var(--green); color: var(--white); border-radius: 100px;
  font-size: 16px; font-weight: 700; letter-spacing: 0;
}
.nav-links .nav-cta a:hover { background: var(--green-dark); color: var(--white); }
.nav-links .mobile-only { display: none; }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 22px; height: 2px; background: var(--white);
  transition: transform .2s ease, background-color .2s ease;
}
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- home hero ---------- */
.hero {
  position: relative;
  background: #444 url("/images/pexels-meeting.jpg") center / cover no-repeat;
  color: var(--white);
  padding-block: calc(var(--header-h) + 12px) 48px;
  min-height: 500px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .15);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 9fr 3fr; gap: 24px;
}
.hero-text { padding-top: 88px; }
.hero h1 {
  font-family: Helvetica, Arial, sans-serif; font-weight: 700;
  color: var(--white); line-height: 1.15;
}
.hero h1.hello { font-size: 30px; }
.hero h1.name { font-size: 60px; margin: 4px 0 20px; }
.hero .lead { font-size: 20px; max-width: 605px; }

.mag-box {
  align-self: start; margin-top: 28px;
  background: var(--white); color: var(--ink);
  border-radius: 10px; padding: 10px; text-align: center;
}
.mag-box p {
  margin: 8px 0; font: 700 18px/1.5 Arial, Helvetica, sans-serif;
}
.mag-box img { width: 65px; margin: 0 auto; }
.btn-red {
  display: inline-block; margin-block: 50px;
  background: var(--red); color: var(--white);
  padding: 14px 36px; border-radius: 6px;
  font: 700 18px/1.3 Arial, sans-serif; text-decoration: none;
  transition: background-color .2s;
}
.btn-red:hover { background: var(--red-dark); }

/* ---------- home: about the magazine ---------- */
.about { padding-block: 97px 75px; }
.about-grid {
  display: grid; grid-template-columns: 5fr 7fr; align-items: start;
}
.about-text { margin-left: 54px; max-width: 637px; }
.about h2 { font-size: 40px; font-weight: 700; line-height: 1.5; margin-bottom: 27px; }
.about p { line-height: 1.38; }
.about p + p { margin-top: 25px; }
.about p.tight { margin-top: 0; }

/* ---------- magazine page ---------- */
.issues { padding-block: 14px 50px; }
.issue {
  display: grid; grid-template-columns: 1fr 1fr; align-items: start;
}
.issue + .issue { margin-top: 90px; }
.issue img { width: 100%; max-width: 600px; }
.issue-text { text-align: center; padding-top: 27px; }
.issue-text .vol { font-weight: 700; margin-bottom: 27px; }
.issue-text .vol-lg { font-size: 24px; }
.issue-text a { font-size: 30px; color: var(--green); }
.issue-text a:hover { color: var(--green-dark); }

/* ---------- privacy policy ---------- */
.prose { padding-block: 200px 150px; }
.prose .title { font-size: 36px; font-weight: 400; line-height: 1.44; margin-bottom: 26px; }
.prose h2 { font-size: 18px; font-weight: 700; line-height: 1.5; }
.prose p + h2 { margin-top: 27px; }
.prose p + p { margin-top: 27px; }
.prose p.lh { line-height: 1.38; }

/* ---------- download page ---------- */
.download-page { background: #f5f5f5; }
.download-container { display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.download-card {
  background: #fff; color: #333; border-radius: 12px; padding: 48px 40px;
  max-width: 460px; width: 100%; box-shadow: 0 4px 20px rgba(0,0,0,.1); text-align: center;
}
.download-card h1 { font-size: 26px; margin-bottom: 8px; color: #1a1a2e; line-height: 1.3; }
.download-card p { font-size: 15px; color: #666; margin-bottom: 28px; }
.download-card img { width: 100px; margin: 0 auto 20px; }
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #333; }
.form-group input {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 6px;
  font: 15px/1.4 "Sora", system-ui, sans-serif; transition: border-color .2s;
}
.form-group input:focus { outline: none; border-color: var(--red); }
.btn-download {
  background: var(--red); color: #fff; border: none; padding: 14px 40px;
  border-radius: 6px; font: 700 16px/1.3 "Sora", system-ui, sans-serif; cursor: pointer;
  transition: background .2s; width: 100%; margin-top: 8px;
}
.btn-download:hover { background: var(--red-dark); }
.btn-download:disabled { background: #aaa; cursor: not-allowed; }
.status-msg { margin-top: 16px; padding: 12px; border-radius: 6px; font-size: 14px; display: none; }
.status-msg.success { display: block; background: #ecfdf5; color: #065f46; }
.status-msg.error { display: block; background: #fef2f2; color: #991b1b; }
.back-link { display: inline-block; margin-top: 20px; color: #999; font-size: 13px; text-decoration: none; }
.back-link:hover { color: var(--red); }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--white); padding-block: 50px 45px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.address { line-height: 2; }
.foot-nav { list-style: none; margin: 0; padding: 8px 0 0; }
.foot-nav a { font-size: 16px; font-weight: 600; text-decoration: none; letter-spacing: .03em; }
.foot-nav a:hover { color: var(--green); }
.site-footer hr { border: 0; border-top: 1px solid #8a8a8a; margin: 36px 0 30px; }
.copyright { font-size: 16px; font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .burger { display: flex; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    margin: 0; padding: 8px 20px 24px;
    background: var(--dark);
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links .mobile-only { display: block; }
  .nav-links a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links .nav-cta a { width: 100%; margin: 16px 0 0; border-bottom: 0; }
  .home .site-header:has(.nav-links.open) { background: var(--dark); }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { text-align: center; padding-top: 40px; }
  .hero .lead { margin-inline: auto; }
  .mag-box { width: 100%; max-width: 360px; justify-self: center; margin-top: 16px; }
}

@media (max-width: 860px) {
  .about-grid, .issue { grid-template-columns: 1fr; gap: 32px; }
  .about-text { margin-left: 0; max-width: none; }
  .issue img { margin-inline: auto; }
  .issue-text { padding-top: 0; }
}

@media (max-width: 767px) {
  :root { --header-h: 65px; }
  body { font-size: 16px; }
  .hero { min-height: 0; padding-bottom: 40px; }
  .hero h1.hello { font-size: 24px; }
  .hero h1.name { font-size: clamp(34px, 11vw, 60px); }
  .hero .lead { font-size: 16px; }
  .btn-red { margin-block: 32px; }
  .about { padding-block: 56px 48px; }
  .about h2 { font-size: 30px; line-height: 1.3; margin-bottom: 20px; }
  .about p + p { margin-top: 20px; }
  .issue + .issue { margin-top: 64px; }
  .issue-text .vol { font-size: 19px; margin-bottom: 16px; }
  .issue-text a { font-size: 24px; }
  .prose { padding-block: 64px 80px; }
  .prose .title { font-size: 29px; }
  .prose h2 { font-size: 16px; }
  .prose p + h2, .prose p + p { margin-top: 22px; }
  .foot-grid { grid-template-columns: 1fr; text-align: center; gap: 12px; }
  .foot-nav { padding: 0; }
  .copyright { font-size: 15px; text-align: center; }
  .download-card { padding: 32px 24px; }
}
