/* ============================================
   alfiosalvatorelanuto.xyz - 2026
   Palette derived from original brand mark.
   ============================================ */

:root {
  --navy:       #293971;
  --navy-deep:  #1c2750;
  --navy-soft:  #3a4d8f;
  --peach:      #FFBC7D;
  --peach-deep: #f29b4a;
  --sky:        #A3C0D6;
  --sky-soft:   #e3edf6;
  --ink:        #1a1f2e;
  --muted:      #54595F;
  --grey:       #7A7A7A;
  --line:       #e6ebf2;
  --paper:      #fbfaf6;
  --paper-2:    #f5f1e8;
  --white:      #ffffff;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
  --readw: 720px;

  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(28,39,80,0.05), 0 2px 8px rgba(28,39,80,0.04);
  --shadow:    0 10px 30px rgba(28,39,80,0.08), 0 2px 6px rgba(28,39,80,0.04);
  --shadow-lg: 0 30px 80px rgba(28,39,80,0.12);

  --t: 0.35s cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--peach-deep); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.2em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--peach-deep);
  font-weight: 600;
  margin-bottom: 1.2rem;
  display: inline-block;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.narrow    { max-width: var(--readw); margin: 0 auto; padding: 0 28px; }
section { padding: clamp(60px, 9vw, 120px) 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,250,246,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(251,250,246,0.95);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.brand img { width: 40px; height: 40px; object-fit: contain; object-position: center; }
.brand span { font-weight: 500; }
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1.5px;
  background: var(--peach);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 32px; height: 32px;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 140px) 0 clamp(80px, 12vw, 140px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 500px at 85% 15%, rgba(255,188,125,0.18), transparent 70%),
    radial-gradient(800px 600px at 10% 85%, rgba(163,192,214,0.30), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}
.hero h1 {
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
}
.hero h1 em {
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mark::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,188,125,0.15), transparent 65%);
  filter: blur(20px);
}
.hero-mark img {
  position: relative;
  width: 100%;
  max-width: 460px;
  filter: drop-shadow(0 30px 60px rgba(41,57,113,0.18));
  animation: float 9s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(41,57,113,0.25);
}
.btn-primary:hover {
  background: var(--navy-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(41,57,113,0.32);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}
.btn .arrow {
  width: 16px; height: 16px;
  transition: transform var(--t);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Letter / opening prose ---------- */
.letter {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 72px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
}
.letter::before {
  content: "";
  position: absolute;
  top: 0; left: 50px; right: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--peach), var(--sky));
  border-radius: 0 0 3px 3px;
}
.letter .salutation {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 1.6rem;
}
.letter p {
  font-size: 1.06rem;
  color: var(--ink);
  line-height: 1.85;
}
.letter .signature {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  color: var(--navy);
}
.letter .signature strong {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 1.15rem;
  margin-top: 6px;
}

/* ---------- Three Pillars (cards) ---------- */
.pillars { background: linear-gradient(180deg, var(--paper) 0%, var(--sky-soft) 100%); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}
.pillar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 34px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.pillar::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--peach);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: var(--ink);
}
.pillar:hover::after { transform: scaleX(1); }
.pillar .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--peach-deep);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.pillar h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.pillar p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0 0 24px;
  flex: 1;
}
.pillar .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pillar:hover .read-more { color: var(--peach-deep); }

/* ---------- Section header ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 20px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Values strip ---------- */
.values {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.values::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 90% 0%, rgba(255,188,125,0.10), transparent 70%),
    radial-gradient(700px 500px at 10% 100%, rgba(163,192,214,0.10), transparent 70%);
}
.values .container { position: relative; }
.values h2 { color: var(--white); }
.values .eyebrow { color: var(--peach); }
.values blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--white);
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
  padding: 30px 20px;
  position: relative;
}
.values blockquote::before, .values blockquote::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--peach);
}
.values blockquote::before { top: 0; }
.values blockquote::after  { bottom: 0; }

/* ---------- Page (sub-page) hero ---------- */
.page-hero {
  padding: clamp(70px, 10vw, 130px) 0 clamp(40px, 6vw, 70px);
  background:
    radial-gradient(800px 500px at 80% 0%, rgba(255,188,125,0.15), transparent 60%),
    radial-gradient(700px 500px at 5% 100%, rgba(163,192,214,0.28), transparent 60%),
    var(--paper);
}
.page-hero .container {
  text-align: center;
  max-width: 820px;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 {
  font-style: italic;
  font-weight: 400;
  margin-bottom: 18px;
}
.page-hero .sub {
  font-size: 1.2rem;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
}

/* ---------- Long-form prose ---------- */
.prose {
  background: var(--white);
}
.prose-body {
  max-width: var(--readw);
  margin: 0 auto;
  padding: 0 28px;
}
.prose-body p {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #2a3142;
  margin-bottom: 1.5em;
}
.prose-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 4.4rem;
  font-weight: 600;
  float: left;
  line-height: 0.9;
  padding: 6px 14px 0 0;
  color: var(--navy);
}
.prose-body .pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--navy);
  border-left: 3px solid var(--peach);
  padding: 6px 0 6px 26px;
  margin: 2.4em 0;
}
.prose-body .closing {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  color: var(--navy);
}
.prose-body .closing strong {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 1.1rem;
  margin-top: 6px;
}

/* ---------- Ventures grid (In The March) ---------- */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.venture {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--t), box-shadow var(--t);
}
.venture:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.venture .tag {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--peach-deep);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
.venture h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.venture h3 a { color: var(--navy); }
.venture p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 40px;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
footer .brand-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
footer .brand-foot img { width: 48px; height: 48px; }
footer .brand-foot .name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--white);
}
footer h4 {
  color: var(--white);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 10px; }
footer a { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
footer a:hover { color: var(--peach); }
footer .tagline {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(255,255,255,0.65);
  max-width: 340px;
}
footer .bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-mark { order: -1; max-width: 320px; margin: 0 auto; }
  .pillars-grid { grid-template-columns: 1fr; }
  .ventures-grid { grid-template-columns: 1fr; }
  footer .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px 28px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    gap: 18px;
  }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .brand small { display: none; }
  .letter { padding: 32px 24px; }
  .letter::before { left: 24px; right: 24px; }
}

::selection { background: var(--peach); color: var(--navy-deep); }
