/* Shared styles for ronappel.com project case-study pages.
   Edit this file to keep future project pages visually consistent. */

:root {
  color-scheme: light;
  --ink:#202a35;
  --muted:#5e6975;
  --line:#dce3e8;
  --blue:#315b78;
  --bg:#fbfcfd;
  --soft:#f0f4f6;
  --content:1040px;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:16px/1.68 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

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

a:hover {
  color:#18374b;
}

.container {
  width:min(calc(100% - 48px),var(--content));
  margin-inline:auto;
}

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

.head-inner {
  height:76px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.wordmark {
  font-weight:720;
  letter-spacing:-.035em;
  font-size:20px;
  color:var(--ink);
  text-decoration:none;
}

.nav {
  display:flex;
  align-items:center;
  gap:28px;
}

.nav a {
  text-decoration:none;
  color:#46515d;
  font-size:14px;
}

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

.back {
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:13px;
  text-decoration:none;
  color:var(--muted);
  margin-top:38px;
}

.back:hover {
  color:var(--ink);
}

.intro {
  max-width:860px;
  padding-top:32px;
  padding-bottom:34px;
}

.eyebrow {
  color:var(--blue);
  font-size:11px;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.15em;
  margin:0 0 16px;
}

h1 {
  font-size:clamp(37px,5vw,66px);
  line-height:1.09;
  letter-spacing:-.052em;
  font-weight:720;
  margin:0 0 23px;
  max-width:800px;
}

.dek {
  font-size:clamp(17px,2.15vw,22px);
  line-height:1.55;
  color:#536271;
  max-width:760px;
  margin:0;
}

.hero-visual {
  height: auto;
  aspect-ratio: auto;
  overflow: visible;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.placeholder {
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg,#edf3f6,#dce6ec);
  position:relative;
}

.placeholder svg {
  width:87%;
  height:88%;
  max-width:900px;
}

.picture-note {
  position:absolute;
  bottom:16px;
  left:18px;
  background:#fffE;
  border:1px solid #dce4e8;
  border-radius:5px;
  color:#475462;
  padding:6px 11px;
  font-size:12px;
}

.figcaption {
  font-size:12px;
  color:#687683;
  margin:11px 0 0;
}

.meta {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:30px 0 0;
}

.tag {
  border:1px solid var(--line);
  color:#566777;
  border-radius:100px;
  font-size:12px;
  font-weight:600;
  padding:5px 13px;
  background:white;
}

.article {
  display:grid;
  grid-template-columns:minmax(0,1fr) 225px;
  gap:85px;
  padding-top:64px;
  padding-bottom:65px;
}

.prose {
  max-width:700px;
}

.prose section+section {
  margin-top:45px;
}

h2 {
  font-size:25px;
  letter-spacing:-.035em;
  line-height:1.25;
  margin:0 0 15px;
  font-weight:700;
}

.prose p {
  margin:0 0 16px;
  color:#465460;
}

.prose p:last-child {
  margin-bottom:0;
}

.sidebar {
  align-self:start;
  position:sticky;
  top:26px;
  border-left:1px solid var(--line);
  padding-left:22px;
}

.sidebar h3 {
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin:2px 0 13px;
  color:#687582;
}

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

.sidebar li {
  font-size:13px;
  line-height:1.55;
  margin:0 0 12px;
}

.sidebar a {
  text-decoration:none;
}

.sidebar p {
  font-size:12px;
  color:var(--muted);
  margin-top:22px;
}

.cta-section {
  background:#eef3f6;
  border-top:1px solid #e0e8ed;
  border-bottom:1px solid #e0e8ed;
  padding:56px 0;
}

.cta-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:28px;
}

.cta-inner h2 {
  font-size:29px;
  max-width:520px;
  margin:0 0 9px;
}

.cta-inner p {
  color:var(--muted);
  max-width:540px;
  margin:0;
}

.cta-link {
  flex:none;
  display:inline-block;
  text-decoration:none;
  color:white;
  background:#263f53;
  border-radius:6px;
  font-weight:650;
  padding:12px 23px;
  font-size:14px;
}

.cta-link:hover {
  background:#142d40;
  color:white;
}

.footer {
  padding:30px 0;
  display:flex;
  gap:20px;
  align-items:center;
  justify-content:space-between;
  font-size:12px;
  color:#6d7882;
}

.footer a {
  text-decoration:none;
}

.footer-links {
  display:flex;
  gap:22px;
}

.notice {
  background:#fff8e9;
  border:1px solid #ead8ab;
  padding:12px 16px;
  margin:30px auto 0;
  font-size:12px;
  color:#806026;
  border-radius:7px;
}

.notice strong {
  color:#60451a;
}

@media(max-width:800px) {
  .article {
    grid-template-columns:1fr;
    gap:28px;
    padding-top:45px;
  }

  .sidebar {
    position:static;
    grid-row:1;
    border-left:0;
    border-bottom:1px solid var(--line);
    padding:0 0 17px;
  }

  .sidebar ul {
    display:flex;
    flex-wrap:wrap;
    gap:4px 16px;
  }

  .sidebar li {
    margin-bottom:3px;
  }

  .sidebar p {
    display:none;
  }

  .cta-inner {
    align-items:start;
    flex-direction:column;
  }

  .hero-visual {
    aspect-ratio:16/10;
  }

}

@media(max-width:530px) {
  .container {
    width:min(calc(100% - 32px),var(--content));
  }

  .head-inner {
    height:68px;
  }

  .nav {
    gap:13px;
  }

  .nav a {
    font-size:12px;
  }

  .intro {
    padding-top:25px;
  }

  .back {
    margin-top:25px;
  }

  .picture-note {
    font-size:10px;
    bottom:8px;
    left:8px;
  }

  .footer {
    align-items:flex-start;
    flex-direction:column;
  }

}

/* Reusable figure reset */
.project-figure { margin: 0; }
