/* ============================================
   aprilyania.com — shared stylesheet
   ============================================ */

:root {
  --bg: #fdfcfa;
  --bg-alt: #f4f1ec;
  --surface: #ffffff;
  --ink: #23211e;
  --ink-soft: #5c574f;
  --ink-faint: #8a8479;
  --accent: #b4552d;        /* terracotta */
  --accent-dark: #8f4021;
  --accent-soft: #f6e7de;
  --line: #e7e2da;
  --radius: 14px;
  --max-width: 1040px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand span { color: var(--accent); }

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

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero (home) ---------- */

.hero {
  padding: 88px 0 72px;
}

.hero-content {
  max-width: 820px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero .kicker {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 40em;
  margin-bottom: 32px;
}

.hero-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--accent-soft), var(--bg-alt));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-portrait .placeholder {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.55;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Stats band ---------- */

.stats-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat .num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat .label {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}

.section-head .more { font-size: 0.95rem; font-weight: 500; white-space: nowrap; }

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(35, 33, 30, 0.07);
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  display: block;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.25s ease;
}

.card:hover .card-thumb img {
  transform: scale(1.03);
}

.card h3 { font-size: 1.2rem; }

.card p { color: var(--ink-soft); font-size: 0.95rem; flex-grow: 1; }

.card .card-link { font-weight: 600; font-size: 0.92rem; }

.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: flex-start;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 40em;
}

/* ---------- Prose (about / blog) ---------- */

.prose { max-width: 44em; }
.prose p { margin-bottom: 1.2em; color: var(--ink-soft); }
.prose p strong { color: var(--ink); }
.prose h2 {
  font-size: 1.5rem;
  margin: 1.8em 0 0.7em;
  color: var(--ink);
}
.prose ul { margin: 0 0 1.2em 1.3em; color: var(--ink-soft); }
.prose li { margin-bottom: 0.4em; }

/* ---------- Skills ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.skill-group h3 {
  font-size: 1.02rem;
  margin-bottom: 12px;
  color: var(--accent-dark);
}

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.83rem;
  color: var(--ink-soft);
}

/* ---------- Resume timeline ---------- */

.resume-actions { margin-bottom: 40px; }

.timeline { position: relative; padding-left: 28px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: 44px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.timeline-item .role-head { margin-bottom: 4px; }

.timeline-item h3 { font-size: 1.25rem; }

.timeline-item .company {
  font-weight: 600;
  color: var(--accent-dark);
  font-size: 0.98rem;
}

.timeline-item .meta {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.timeline-item ul {
  margin-left: 1.2em;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.timeline-item li { margin-bottom: 6px; }

.timeline-item li strong { color: var(--ink); }

/* ---------- Two-column resume extras ---------- */

.resume-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}

.extras-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.extras-card h2 { font-size: 1.35rem; margin-bottom: 16px; }

.extras-card ul { list-style: none; }

.extras-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.extras-card li:last-child { border-bottom: none; }

.extras-card li .issuer {
  display: block;
  color: var(--ink-faint);
  font-size: 0.83rem;
}

/* ---------- Customer Story Cards ---------- */

.story-list { display: flex; flex-direction: column; gap: 32px; }

.story-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(35, 33, 30, 0.08);
}

.story-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  overflow: hidden;
  background: var(--bg-alt);
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.story-card:hover .story-img {
  transform: scale(1.03);
}

.story-content {
  padding: 32px 36px 32px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.story-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 3px 12px;
  border-radius: 999px;
}

.story-card h2 {
  font-size: 1.5rem;
  line-height: 1.3;
}

.story-card h2 a {
  color: var(--ink);
}

.story-card h2 a:hover {
  color: var(--accent);
}

.story-summary {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.story-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 12px;
}

.story-highlights li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  padding-left: 18px;
}

.story-highlights li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.story-link {
  align-self: flex-start;
  margin-top: 4px;
}

.featured-story-image {
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.featured-story-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.featured-story-image figcaption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-faint);
  padding: 10px 16px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.post-list { display: flex; flex-direction: column; gap: 20px; }

.post-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(35, 33, 30, 0.06);
}

.post-item .date {
  color: var(--ink-faint);
  font-size: 0.86rem;
  padding-top: 4px;
}

.post-item h3 { font-size: 1.25rem; margin-bottom: 6px; }
.post-item h3 a { color: var(--ink); }
.post-item h3 a:hover { color: var(--accent); }
.post-item p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Contact CTA ---------- */

.cta-band {
  background: var(--ink);
  color: #f4f1ec;
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 14px;
}

.cta-band p {
  color: #b9b3a8;
  max-width: 36em;
  margin: 0 auto 28px;
}

.cta-band .btn-primary { background: var(--accent); }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 320px; }
  .card-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .skills-grid { grid-template-columns: 1fr; }
  .resume-extras { grid-template-columns: 1fr; }
  .post-item { grid-template-columns: 1fr; gap: 6px; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }

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

  .site-nav a {
    width: 100%;
    padding: 14px 24px;
    border-bottom: none;
  }

  .site-nav a.active { background: var(--accent-soft); }
}
