/* ==========================================================
   KOKI OS WEBSITE
   Design System v1
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* =========================
   VARIABLES
========================= */

:root{

    --bg:#F5F0E8;

    --surface:#EFE7DA;

    --surface-hover:#E8DFD1;

    --green:#1B5E45;

    --green-light:#2D7A5C;

    --text:#1F1F1F;

    --muted:#6F6F6F;

    --border:#D8D0C3;

    --gold:#D8A646;

    --radius:22px;

    --radius-small:14px;

    --container:1200px;

    --transition:.28s ease;

}

/* =========================
RESET
========================= */

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

html{
    scroll-behavior:smooth;
    scroll-padding-top:100px;
}

body{

    background:var(--bg);

    color:var(--text);

    font-family:'Inter',sans-serif;

    line-height:1.7;

    overflow-x:hidden;

}

img{

    display:block;

    width:100%;

}

a{

    text-decoration:none;

    color:inherit;

}

.container{

    width:min(92%,var(--container));

    margin:auto;

}

/* =========================
TYPOGRAPHY
========================= */

h1,h2,h3,h4{

    font-family:'Cormorant Garamond',serif;

    font-weight:600;

}

h1{

    font-size:72px;

    line-height:1;

    letter-spacing:-2px;

}

h2{

    font-size:48px;

    line-height:1.1;

}

h3{

    font-size:24px;

}

p{

    color:var(--muted);

    font-size:17px;

}

/* =========================
BUTTONS
========================= */

.primary-btn{

    background:var(--green);

    color:white;

    padding:15px 28px;

    border-radius:16px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    transition:var(--transition);

}

.primary-btn:hover{

    background:var(--green-light);

    transform:translateY(-3px);

}

.secondary-btn{

    border:1px solid var(--border);

    padding:15px 28px;

    border-radius:16px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    transition:var(--transition);

}

.secondary-btn:hover{

    background:var(--surface);

}

/* =========================
NAVBAR
========================= */

.navbar{

    position:sticky;

    top:0;

    z-index:999;

    backdrop-filter:blur(18px);

    background:rgba(245,240,232,.86);

    border-bottom:1px solid var(--border);

}

.navbar .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:82px;

}

.logo h2{

    font-size:30px;

}

.logo span{

    color:var(--muted);

    font-size:13px;

    letter-spacing:2px;

    text-transform:uppercase;

}

nav{

    display:flex;

    align-items:center;

    gap:26px;

}

nav a{

    color:var(--muted);

    transition:.25s;

}

nav a:hover{

    color:var(--green);

}

.nav-btn{

    background:var(--green);

    color:white;

    padding:12px 22px;

    border-radius:14px;

}

/* =========================
SOCIAL ICONS
========================= */

.social-icons{

    display:flex;

    align-items:center;

    gap:14px;

}

.social-icons a{

    width:38px;

    height:38px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    border:1px solid var(--border);

    color:var(--muted);

    transition:var(--transition);

}

.social-icons a svg{

    width:18px;

    height:18px;

}

.social-icons a:hover{

    background:var(--green);

    border-color:var(--green);

    color:white;

    transform:translateY(-3px);

}

.social-icons-large{

    margin-top:36px;

    justify-content:center;

    gap:16px;

}

.social-icons-large a{

    width:auto;

    height:auto;

    padding:12px 20px;

    border-radius:999px;

    gap:9px;

    font-size:14px;

    font-weight:600;

}

.social-icons-large a svg{

    width:17px;

    height:17px;

}

/* =========================
HERO
========================= */

.hero{
    padding:36px 0 40px;
}

.hero-grid{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    align-items:center;
    gap:60px;
}

.build-badge{

    display:inline-flex;

    padding:8px 16px;

    border-radius:999px;

    background:#E7F1EB;

    color:var(--green);

    margin-bottom:30px;

    font-size:14px;

    font-weight:600;

}

.hero h2{

    margin:18px 0;

}

.hero p{

    max-width:560px;

    margin:28px 0 40px;

}

.hero-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:16px;
    margin-bottom:40px;
}

.hero-right img{

    border-radius:26px;

    border:1px solid var(--border);

    box-shadow:0 25px 60px rgba(0,0,0,.08);

}

/* =========================
STATUS
========================= */

.status{

    padding:16px 0 44px;

}

.status-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:20px;

}

.status-grid div{

    background:var(--surface);

    border:1px solid var(--border);

    border-radius:20px;

    padding:30px;

}

.status-grid p{

    margin-top:10px;

    color:var(--green);

    font-weight:600;

}

/* =========================
MANIFESTO
========================= */

.manifesto{

    padding:56px 0;

    text-align:center;

}

.manifesto h2{

    max-width:900px;

    margin:auto;

}

/* =========================
FOOTER
========================= */

footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: left;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-brand h3 {
  font-size: 20px;
  font-family: 'Cormorant Garamond', serif;
}
.footer-brand span {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--green); }
.footer-copy {
  font-size: 13px;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  margin: 0;
}
@media(max-width:900px) {
  .footer-links { gap: 14px; }
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:900px){

.hero-grid{
    grid-template-columns:1fr;
    gap:40px;
}

.status-grid{
    grid-template-columns:1fr 1fr;
}

nav{
    display:none;
}

h1{
    font-size:48px;
}

h2{
    font-size:32px;
}

/* Stack feature grids, image always on top */
.feature-grid,
.alternate .feature-grid{
    grid-template-columns:1fr;
    gap:24px;
}

/* On mobile, always show image first regardless of DOM order */
.alternate .feature-image{
    order:-1;
}

/* Uniform image height on mobile */
.feature-image{
    min-height:220px;
    max-height:280px;
}

.feature-content{
    max-width:100%;
}

.hero-buttons,
.status-footer{
    flex-direction:column;
    align-items:stretch;
}

.primary-btn,
.secondary-btn{
    width:100%;
    text-align:center;
}

.feature-content h3{
    font-size:38px;
}

.architecture-grid,
.build-status,
.roadmap-grid,
.design-grid,
.toolkit-grid{
    grid-template-columns:1fr;
}

.feature{
    padding:40px 0;
}

.story-break{
    padding:28px 0;
}

}
/* ==========================================
WHY KOKI
========================================== */

.section{
    padding: 60px 0;
}

.narrow{

    max-width:850px;

}

.section-tag{

    display:inline-block;

    margin-bottom:18px;

    padding:8px 16px;

    background:#E7F1EB;

    color:var(--green);

    border-radius:999px;

    font-size:13px;

    font-weight:700;

    letter-spacing:1px;

}

.section-title{

    font-size:58px;

    margin-bottom:40px;

    line-height:1.1;

}

.story{

    display:flex;

    flex-direction:column;

    gap:28px;

}

.story p{

    font-size:20px;

    line-height:1.9;

    color:#4f4f4f;

}

.story blockquote{

    margin-top:30px;

    font-size:40px;

    font-family:'Cormorant Garamond',serif;

    color:var(--green);

    border-left:4px solid var(--green);

    padding-left:28px;

} /* ==========================================
FOUNDER LETTER
========================================== */

.founder-section{

    padding-top:36px;

}

.letter-card{

    margin-top:35px;

    background:var(--surface);

    border:1px solid var(--border);

    border-radius:28px;

    padding:44px;

}

.letter-start{

    font-family:'Cormorant Garamond',serif;

    font-size:40px;

    color:var(--text);

    margin-bottom:35px;

}

.letter-card p{

    font-size:19px;

    line-height:2;

    color:#4b4b4b;

    margin-bottom:24px;

}

.letter-card strong{

    color:var(--green);

}

.signature{

    margin-top:36px;

    padding-top:30px;

    border-top:1px solid var(--border);

}

.signature h3{

    font-size:34px;

}

.signature span{

    color:var(--muted);

} /* ==========================================
INSIDE KOKI
========================================== */
/* ==========================================
   INSIDE KOKI - PRODUCT TOUR SLIDER
   ========================================== */

.tour-container {
    width: 100%;
    margin-top: 48px;
}

.tour-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Slider window */
.tour-slider {
    overflow: hidden;
    width: 100%;
    border-radius: var(--radius);
}

.tour-slides-track {
    display: flex;
    width: 100%;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.tour-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.25;
    transition: opacity 0.5s ease;
}

.tour-slide.active {
    opacity: 1;
}

/* Screenshot styling */
.tour-image-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 520px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
}

.tour-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tour-slide.active .tour-image {
    transform: scale(1.02);
}

/* Slide Content area */
.tour-info {
    width: 100%;
    text-align: left;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 10px;
}

.tour-slide.active .tour-info {
    transform: translateY(0);
}

.tour-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.tour-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 54px;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
}

.tour-title {
    font-size: 40px;
    margin-bottom: 16px;
    color: var(--green);
}

.tour-desc {
    font-size: 18px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 32px;
    max-width: 800px;
}

.tour-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.tour-highlights.single-action {
    display: block;
}

/* Navigation arrows */
.tour-nav-btn {
    position: absolute;
    top: 260px; /* half of 520px max image container */
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(245, 240, 232, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.tour-nav-btn svg {
    width: 20px;
    height: 20px;
}

.tour-nav-btn:hover {
    background: var(--green);
    color: white;
    border-color: var(--green);
    box-shadow: 0 8px 24px rgba(27, 94, 69, 0.15);
}

.tour-nav-btn.prev {
    left: -70px;
}

.tour-nav-btn.next {
    right: -70px;
}

/* Slide Indicator Dots */
.tour-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.tour-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.tour-dot:hover {
    background: var(--green-light);
}

.tour-dot.active {
    width: 32px;
    border-radius: 6px;
    background: var(--green);
}

.feature-status{
    display:inline-block;
    padding:8px 18px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    letter-spacing:2px;
}

.live{
    background:#E7F1EB;
    color:var(--green);
} .feature-list{

margin-top:32px;

display:grid;

grid-template-columns:1fr;

gap:18px;

}

.feature-list div{

background:var(--surface);

border:1px solid var(--border);

padding:22px;

border-radius:18px;

transition:.3s;

}

.feature-list div:hover{

transform:translateY(-5px);

box-shadow:0 15px 40px rgba(0,0,0,.05);

}

.feature-list h4{

font-size:16px;

margin-bottom:8px;

font-family:Inter,sans-serif;

font-weight:700;

text-transform:uppercase;

letter-spacing:1px;

color:var(--green);

}

.feature-list p{

margin:0;

font-size:17px;

} /* ===========================
Dashboard Premium
=========================== */

.feature-top{

display:flex;

align-items:center;

gap:16px;

margin-bottom:18px;

}

.feature-number{

font-family:'Cormorant Garamond',serif;

font-size:64px;

font-weight:700;

color:#d8d0c3;

line-height:1;

}

.feature-highlights{
    margin-top:28px;
    display:grid;
    gap:14px;
}

.highlight-card{

background:white;

border:1px solid var(--border);

border-radius:18px;

padding:24px;

transition:.3s;

}

.highlight-card:hover{

transform:translateY(-6px);

box-shadow:0 18px 45px rgba(0,0,0,.06);

}

.highlight-card span{

font-size:12px;

font-weight:700;

letter-spacing:2px;

text-transform:uppercase;

color:var(--green);

}

.highlight-card h4{

margin:10px 0;

font-size:22px;

font-family:'Cormorant Garamond',serif;

}

.highlight-card p{

margin:0;

font-size:16px;

} .story-break{
    padding:40px 0;
    text-align:center;
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
}

.story-break h2{
    font-size:44px;
    margin-bottom:18px;
}

.story-break p{
    max-width:660px;
    margin:auto;
    font-size:18px;
    line-height:1.85;
} .coming{

background:#FFF3D6;

color:#B26A00;

}  /* ==========================================
   INTERACTIVE TECH ECOSYSTEM
   ========================================== */
.tech-ecosystem-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 36px;
    width: 100%;
}

.tech-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
}

.tech-logo-btn {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.tech-logo-btn:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--green);
    box-shadow: 0 10px 25px rgba(27, 94, 69, 0.06);
}

.tech-logo-btn.active {
    background: var(--surface);
    border-color: var(--green);
    box-shadow: inset 0 0 0 1px var(--green);
}

.tech-logo-icon {
    font-size: 32px;
    transition: var(--transition);
}

.tech-logo-btn:hover .tech-logo-icon {
    transform: scale(1.15) rotate(5deg);
}

.tech-logo-name {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

/* Detail panel card */
.tech-detail-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    transition: opacity 0.35s ease, transform 0.35s ease;
    opacity: 1;
    transform: translateY(0);
}

.tech-detail-card.fade-out {
    opacity: 0;
    transform: translateY(8px);
}

.tech-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.tech-detail-header h3 {
    font-size: 32px;
    color: var(--green);
    margin: 0;
}

.small-btn {
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 100px;
}

.tech-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
}

.tech-detail-col strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 8px;
}

.tech-detail-col p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

@media(max-width: 768px) {
    .tech-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tech-detail-card {
        padding: 24px;
    }
}
.build-status{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:20px;

margin-top:36px;

}

.build-status div{

background:white;

padding:30px;

border-radius:18px;

border:1px solid var(--border);

}

.build-status h3{

font-size:20px;

margin-bottom:12px;

}
.timeline{

margin-top:48px;

border-left:3px solid var(--green);

padding-left:35px;

display:flex;

flex-direction:column;

gap:40px;

}

.timeline-item{

position:relative;

}

.timeline-item::before{

content:"";

position:absolute;

left:-46px;

top:8px;

width:16px;

height:16px;

background:var(--green);

border-radius:50%;

}

.timeline-item span{

color:var(--green);

font-size:13px;

font-weight:700;

letter-spacing:2px;

text-transform:uppercase;

}

.timeline-item h3{

margin:10px 0;

font-size:32px;

}
.roadmap-grid{

display:grid;

grid-template-columns:1fr 1fr;

gap:30px;

margin-top:40px;

}

.roadmap-card{

background:white;

padding:40px;

border-radius:22px;

border:1px solid var(--border);

}

.roadmap-card ul{

margin-top:20px;

display:flex;

flex-direction:column;

gap:16px;

padding-left:18px;

}
/* =========================
THIS WEEK
========================= */

.week-version{

padding:10px 18px;

border-radius:999px;

background:var(--green);

color:white;

font-weight:600;

}




/* ==========================================
   INTERACTIVE DESIGN NOTEBOOK
   ========================================== */

.design-notebook-section {
    padding-bottom: 40px;
}

/* Thin progress bar at top */
.nb-progress-track {
    height: 3px;
    background: var(--border);
    border-radius: 100px;
    margin: 24px 0 32px;
    overflow: hidden;
}

.nb-progress-fill {
    height: 100%;
    background: var(--green);
    border-radius: 100px;
    width: 0%;
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Two-column notebook layout */
.notebook-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

/* Left spine / chapter list */
.nb-spine {
    background: var(--bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.nb-chapter-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    position: relative;
    width: 100%;
}

.nb-chapter-btn:hover {
    background: var(--surface);
}

.nb-chapter-btn.active {
    background: var(--surface);
    border-left-color: var(--green);
}

.nb-chapter-btn.active .nb-ch-num {
    color: var(--green);
}

.nb-chapter-btn.active .nb-ch-label {
    color: var(--text);
    font-weight: 500;
}

.nb-ch-num {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--border);
    letter-spacing: 1px;
    flex-shrink: 0;
    transition: var(--transition);
}

.nb-ch-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
    flex: 1;
    transition: var(--transition);
}

.nb-ch-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    transition: var(--transition);
}

.nb-chapter-btn.active .nb-ch-dot {
    background: var(--green);
}

/* Right content area */
.nb-content-area {
    position: relative;
    transition: opacity 0.22s ease;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.nb-content-area.nb-fade-out {
    opacity: 0;
}

/* Individual entries */
.nb-entry {
    display: none;
    flex-direction: column;
    flex: 1;
    padding: 36px 40px 24px;
}

.nb-entry.active {
    display: flex;
}

/* Entry header */
.nb-entry-header {
    margin-bottom: 20px;
}

.nb-entry-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--green);
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: 0.8;
}

.nb-entry-title {
    font-size: 28px;
    color: var(--text);
    line-height: 1.25;
    margin: 0;
}

/* Entry body text */
.nb-entry p {
    font-size: 16px;
    line-height: 1.8;
    color: #4f4f4f;
    margin-bottom: 16px;
}

.nb-entry p:last-of-type {
    margin-bottom: 0;
}

.nb-entry-lead {
    font-size: 18px;
    line-height: 1.85;
    color: var(--text);
}

/* Inspiration list */
.nb-inspiration-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nb-inspiration-list li {
    font-size: 15px;
    line-height: 1.7;
    color: #4f4f4f;
    padding-left: 16px;
    border-left: 2px solid var(--gold);
}

.nb-inspiration-list strong {
    color: var(--text);
}

/* Palette swatches */
.nb-palette {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.nb-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.nb-swatch-item .swatch {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: block;
    transition: transform 0.2s ease;
}

.nb-swatch-item .swatch:hover {
    transform: scale(1.08);
}

.nb-swatch-item small {
    font-size: 11px;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.nb-swatch-name {
    font-size: 11px;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

/* Typography demo */
.nb-type-demo {
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    overflow: hidden;
}

.nb-type-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.nb-type-row:last-child {
    border-bottom: none;
}

.nb-type-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 70px;
    flex-shrink: 0;
}

.nb-type-sample {
    font-size: 20px;
    color: var(--text);
}

.serif-sample {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.sans-sample {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* Principles list */
.nb-principles-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nb-principles-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 18px;
    font-weight: 600;
    color: var(--green);
    transition: var(--transition);
}

.nb-principles-list li:last-child {
    border-bottom: none;
}

.nb-principles-list li:hover {
    padding-left: 6px;
}

.nb-principle-icon {
    font-size: 10px;
    color: var(--border);
}

/* Team block */
.nb-team-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    padding: 24px;
    margin-bottom: 20px;
}

.nb-team-block .section-tag-mini {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.nb-team-block p {
    margin: 0;
}

.nb-team-block strong {
    color: var(--green);
}

.nb-closing-note {
    font-size: 15px;
    line-height: 1.8;
    color: #4f4f4f;
}

.nb-closing-note strong {
    color: var(--green);
}

/* Navigation footer bar */
.nb-nav-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px 20px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.nb-nav-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    transition: var(--transition);
}

.nb-nav-arrow svg {
    width: 16px;
    height: 16px;
}

.nb-nav-arrow:hover {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.nb-counter {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 1px;
}

/* Responsive */
@media(max-width: 900px) {
    .notebook-layout {
        grid-template-columns: 1fr;
    }

    .nb-spine {
        border-right: none;
        border-bottom: 1px solid var(--border);
        flex-direction: row;
        overflow-x: auto;
        padding: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nb-spine::-webkit-scrollbar { display: none; }

    .nb-chapter-btn {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 12px 14px;
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 70px;
    }

    .nb-chapter-btn.active {
        border-bottom-color: var(--green);
        border-left: none;
    }

    .nb-ch-dot { display: none; }

    .nb-ch-label {
        font-size: 10px;
        text-align: center;
        white-space: normal;
        max-width: 60px;
        line-height: 1.3;
    }

    .nb-entry {
        padding: 24px 22px 16px;
    }

    .nb-entry-title {
        font-size: 22px;
    }

    .nb-nav-footer {
        padding: 14px 22px 16px;
    }

    .nb-nav-arrow span {
        display: none;
    }

    .nb-nav-arrow {
        padding: 10px 12px;
    }
}

@media(max-width: 480px) {
    .nb-entry {
        padding: 20px 18px 14px;
    }
    .nb-entry-title {
        font-size: 20px;
    }
    .nb-entry p {
        font-size: 15px;
    }
}

/* Base swatch colors (used in notebook palette chapter) */
.swatch {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.paper { background: #F5F0E8; }
.green { background: #1B5E45; }
.surface { background: #EFE7DA; }

.toolkit-ecosystem {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.toolkit-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
}

.toolkit-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
    padding: 6px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 100px;
    transition: var(--transition);
}

.toolkit-tab:hover {
    color: var(--green);
    background: rgba(27, 94, 69, 0.05);
}

.toolkit-tab.active {
    background: var(--green);
    color: white;
}

.toolkit-detail-panel {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    padding: 24px;
    min-height: 160px;
    transition: opacity 0.35s ease, transform 0.35s ease;
    opacity: 1;
    transform: translateY(0);
    box-sizing: border-box;
}

.toolkit-detail-panel.fade-out {
    opacity: 0;
    transform: translateY(6px);
}

.toolkit-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.toolkit-detail-header h4 {
    font-size: 24px;
    margin: 0;
    color: var(--green);
}

.tech-tag {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--green);
    background: rgba(27, 94, 69, 0.08);
    padding: 6px 12px;
    border-radius: 100px;
    font-weight: 600;
}

#toolkit-detail-desc {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    margin: 0;
}

/* ==========================
KEEP THE INNER CHILD
========================== */

.inner-title{

font-size:64px;

line-height:1.15;

max-width:900px;

margin:30px auto 100px;

text-align:center;

}

.inner-content{

max-width:760px;

margin:auto;

}

.inner-content p{

font-size:21px;

line-height:2.1;

margin-bottom:38px;

color:#444;

}

.inner-content strong{

color:var(--green);

font-weight:600;

}

.inner-content blockquote{

margin:80px 0;

padding:0;

border:none;

text-align:center;

font-size:54px;

line-height:1.3;

font-family:'Cormorant Garamond',serif;

color:var(--green);

}

.inner-divider{

width:120px;

height:2px;

background:#d8d2c7;

margin:70px auto;

}
/* ==========================================
   DESIGN PROCESS
========================================== */








/* =====================================================
   CREATIVE TOOLKIT
===================================================== */

.creative-toolkit{
    margin-top:120px;
}

.creative-toolkit h3{
    font-size:48px;
    margin:18px 0 20px;
    color:#1b1b1b;
}

.toolkit-intro{
    max-width:850px;
    font-size:20px;
    line-height:1.9;
    color:#666;
    margin-bottom:60px;
}



.toolkit-note{

    margin-top:70px;

    padding:45px;

    background:#0E6B50;

    color:white;

    border-radius:24px;

}

.toolkit-note p{

    font-size:20px;

    line-height:1.9;

    margin:0;

}

.toolkit-note strong{

    color:#FFD36E;

}
/* ==========================================
OPEN DEVELOPMENT
========================================== */

.progress-item{

display:flex;

justify-content:space-between;

margin-bottom:14px;

font-weight:600;

}

.progress-bar{

height:12px;

background:#DDD5C8;

border-radius:100px;

overflow:hidden;

margin-bottom:20px;

}

.progress-fill{

height:100%;

background:#0E6B50;

border-radius:100px;

}/* ==========================================
FEEDBACK
========================================== */

.feedback-section{

padding:56px 0;

}

.feedback-grid{

display:grid;

grid-template-columns:1.2fr .8fr;

gap:40px;

margin-top:60px;

}

.feedback-left{

display:grid;

gap:20px;

}

.feedback-item{

background:#FBF8F2;

border:1px solid #DDD5C8;

padding:28px;

border-radius:20px;

transition:.35s;

}

.feedback-item:hover{

transform:translateY(-6px);

box-shadow:0 15px 35px rgba(0,0,0,.08);

}

.feedback-item h4{

margin-bottom:12px;

font-size:24px;

}

.feedback-item p{

color:#666;

line-height:1.8;

}

.feedback-right{

background:#0E6B50;

padding:45px;

border-radius:24px;

color:white;

display:flex;

flex-direction:column;

justify-content:center;

}

.feedback-right h3{

font-size:36px;

margin-bottom:20px;

}

.feedback-right p{

line-height:1.9;

margin-bottom:35px;

color:rgba(255,255,255,.9);

}

.feedback-right .primary-btn{

align-self:flex-start;

}

@media(max-width:900px){

.feedback-grid{

grid-template-columns:1fr;

}

.feedback-right{

padding:35px;

}

}
/* ==========================================
COMMUNITY
========================================== */

.community-section{

padding:56px 0;

}

.community-grid{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:28px;

margin-top:60px;

margin-bottom:0;

}

.community-card{

background:#FBF8F2;

border:1px solid #DDD5C8;

padding:35px;

border-radius:24px;

transition:.35s;

}

.community-card:hover{

transform:translateY(-8px);

box-shadow:0 18px 45px rgba(0,0,0,.08);

}

.community-card h3{

margin-bottom:18px;

font-size:28px;

color:#0E6B50;

}

.community-card p{

line-height:1.9;

color:#666;

}

.community-status{

background:#0E6B50;

border-radius:24px;

padding:50px;

color:white;

}

.community-status h4{

font-size:36px;

margin-bottom:35px;

}

.status-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:30px;

}

.status-grid span{

display:block;

font-size:14px;

text-transform:uppercase;

opacity:.75;

margin-bottom:10px;

}

.status-grid strong{

font-size:24px;

font-weight:600;

}

@media(max-width:900px){

.community-grid{

grid-template-columns:1fr;

}

.status-grid{

grid-template-columns:1fr;

gap:25px;

}

.community-status{

padding:35px;

}

} /* ==========================================
MEET THE BUILDER
========================================== */

.builder-section{

padding:56px 0;

}

.builder-layout{

display:grid;

grid-template-columns:320px 1fr;

gap:70px;

align-items:center;

margin-top:70px;

}

.builder-avatar{

width:280px;

height:280px;

border-radius:50%;

background:#0E6B50;

display:flex;

align-items:center;

justify-content:center;

margin:auto;

}

.builder-avatar span{

font-size:72px;

font-weight:700;

color:white;

}

.builder-info{

display:grid;

gap:25px;

}

.builder-card{

background:#FBF8F2;

border:1px solid #DDD5C8;

padding:32px;

border-radius:22px;

transition:.35s;

}

.builder-card:hover{

transform:translateY(-6px);

box-shadow:0 18px 45px rgba(0,0,0,.08);

}

.builder-card h3{

font-size:28px;

margin-bottom:18px;

color:#0E6B50;

}

.builder-card p{

line-height:1.9;

color:#666;

}

.builder-card ul{

padding-left:20px;

line-height:2;

color:#666;

}

.builder-social{

margin-top:60px;

display:flex;

justify-content:center;

gap:18px;

flex-wrap:wrap;

}

.builder-social a{

padding:14px 28px;

border:1px solid #DDD5C8;

border-radius:999px;

text-decoration:none;

color:#1B1B1B;

transition:.3s;

background:white;

}

.builder-social a:hover{

background:#0E6B50;

color:white;

border-color:#0E6B50;

}

@media(max-width:900px){

.builder-layout{

grid-template-columns:1fr;

text-align:center;

}

.builder-avatar{

width:220px;

height:220px;

}

.builder-avatar span{

font-size:60px;

}

} /* ==========================================
A LETTER TO EVERY CURIOUS MIND
========================================== */

.letter-section{

padding:64px 0;

background:#F5F0E8;

}

.letter-title{

font-size:68px;

line-height:1.15;

text-align:center;

max-width:900px;

margin:30px auto 120px;

}

.letter-body{

max-width:760px;

margin:auto;

}

.letter-chapter h3{

font-size:42px;

margin-bottom:35px;

color:#1B1B1B;

}

.letter-chapter p{

font-size:21px;

line-height:2.15;

margin-bottom:35px;

color:#4B4B4B;

}

.letter-divider{

display:none;

}

.letter-quote{

font-family:"Cormorant Garamond",serif;

font-size:56px;

line-height:1.35;

text-align:center;

color:#0E6B50;

margin:80px 0;

}

.letter-highlight{

color:#0E6B50;

font-weight:600;

}

.final-line{

text-align:center;

font-size:58px;

line-height:1.3;

margin-top:140px;

font-family:"Cormorant Garamond",serif;

color:#0E6B50;

}

/* ==========================================
   CONSOLIDATED BUILD STATUS (new)
   ========================================== */

.status-section{

    padding:44px 0 56px;

}

.status-card{

    background:var(--surface);

    border:1px solid var(--border);

    border-radius:var(--radius);

    padding:44px;

}

.status-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    flex-wrap:wrap;

    gap:14px;

    margin-bottom:26px;

}

/* Weekly Interactive Tabs */
.status-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.status-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
    padding: 8px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 999px;
    transition: var(--transition);
}

.status-tab:hover {
    color: var(--green);
    background: rgba(27, 94, 69, 0.05);
}

.status-tab.active {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.status-content-wrapper {
    transition: opacity 0.35s ease, transform 0.35s ease;
    opacity: 1;
    transform: translateY(0);
}

.status-content-wrapper.fade-out {
    opacity: 0;
    transform: translateY(8px);
}

.status-footer{

    margin-top:36px;

    padding-top:30px;

    border-top:1px solid var(--border);

    display:flex;

    align-items:center;

    justify-content:space-between;

    flex-wrap:wrap;

    gap:20px;

}

.lessons h4{

    font-size:14px;

    text-transform:uppercase;

    letter-spacing:1px;

    color:var(--green);

    margin-bottom:6px;

}

.lessons p{

    margin:0;

    max-width:520px;

}

.subsection-title{
    font-size:30px;
    margin:44px 0 22px;
}

/* Uniform subtitle text below every section heading */
.section-subtitle{
    font-size:18px;
    line-height:1.8;
    color:var(--muted);
    max-width:680px;
    margin-bottom:36px;
}

/* ==========================================
   LETTER: TABLE OF CONTENTS + COLLAPSIBLE BOOK
   ========================================== */

.letter-preface{

    max-width:600px;

    font-style:italic;

    margin-bottom:34px;

}

.letter-toc{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:10px 24px;

    margin-bottom:36px;

}

.letter-toc a{

    display:flex;

    align-items:baseline;

    gap:12px;

    padding:12px 4px;

    border-bottom:1px solid var(--border);

    color:var(--text);

    font-family:'Cormorant Garamond',serif;

    font-size:19px;

    transition:var(--transition);

}

.letter-toc a:hover{

    color:var(--green);

    padding-left:10px;

}

.letter-toc a span{

    font-family:'Inter',sans-serif;

    font-size:12px;

    font-weight:700;

    color:var(--gold);

    letter-spacing:1px;

}

.letter-chapter{

    border-bottom:1px solid var(--border);

    padding:4px 0;

}

.letter-chapter summary.chapter-summary{

    cursor:pointer;

    list-style:none;

    display:flex;

    align-items:center;

    gap:16px;

    padding:22px 4px;

    font-family:'Cormorant Garamond',serif;

    font-size:22px;

    color:var(--text);

    transition:var(--transition);

}

.letter-chapter summary.chapter-summary::-webkit-details-marker{

    display:none;

}

.letter-chapter summary.chapter-summary::before{

    content:"+";

    font-family:'Inter',sans-serif;

    font-weight:600;

    font-size:20px;

    color:var(--green);

    width:28px;

    height:28px;

    border-radius:50%;

    border:1px solid var(--border);

    display:flex;

    align-items:center;

    justify-content:center;

    flex-shrink:0;

    transition:var(--transition);

}

.letter-chapter[open] summary.chapter-summary::before{

    content:"\2212";

    background:var(--green);

    color:white;

    border-color:var(--green);

}

.chapter-index{

    font-family:'Inter',sans-serif;

    font-size:12px;

    font-weight:700;

    color:var(--gold);

    letter-spacing:1px;

}

.chapter-cta{

    margin-left:auto;

    font-family:'Inter',sans-serif;

    font-size:13px;

    color:var(--muted);

}

.letter-chapter:hover summary.chapter-summary{

    color:var(--green);

}

.chapter-content{

    padding:6px 4px 34px 44px;

}

@media(max-width:900px){

    .letter-toc{

        grid-template-columns:1fr;

    }

    .status-footer{

        flex-direction:column;

        align-items:flex-start;

    }

}


/* ==========================================
   DESIGN PROCESS: inspiration list + team strip
   ========================================== */

.inspiration-list{

    display:flex;

    flex-direction:column;

    gap:16px;

    margin:8px 0 20px;

    padding:0;

    list-style:none;

}

.inspiration-list li{

    font-size:19px;

    line-height:1.8;

    color:#4f4f4f;

    padding-left:22px;

    border-left:3px solid var(--gold);

}

.inspiration-list strong{

    color:var(--text);

}

.current-team-strip{

    margin-top:48px;

    padding:32px;

    background:var(--surface);

    border:1px solid var(--border);

    border-radius:var(--radius-small);

}

.current-team-strip .section-tag{

    margin-bottom:14px;

}

.current-team-strip p{

    margin:0;

    font-size:18px;

    max-width:760px;

}

.current-team-strip strong{

    color:var(--green);
}

/* ==========================================
   PRODUCT TOUR RESPONSIVE STYLES
   ========================================== */
@media (max-width: 1140px) {
    .tour-nav-btn.prev {
        left: 15px;
    }
    .tour-nav-btn.next {
        right: 15px;
    }
}

@media (max-width: 900px) {
    .tour-nav-btn {
        top: 28vw; /* aligns relative to responsive image height */
        width: 44px;
        height: 44px;
        background: rgba(245, 240, 232, 0.9); /* slightly higher opacity on mobile */
    }
    .tour-highlights {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .tour-title {
        font-size: 32px;
    }
    .tour-image-container {
        margin-bottom: 24px;
    }
    .tour-desc {
        font-size: 16px;
        margin-bottom: 24px;
    }
}

@media (max-width: 600px) {
    .tour-nav-btn {
        top: 28vw;
        width: 38px;
        height: 38px;
    }
    .tour-nav-btn svg {
        width: 16px;
        height: 16px;
    }
    .tour-nav-btn.prev {
        left: 10px;
    }
    .tour-nav-btn.next {
        right: 10px;
    }
    .tour-number {
        font-size: 40px;
    }
    .tour-title {
        font-size: 26px;
    }
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }
}

/* ==========================================
   SECTION DIVIDER
   ========================================== */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
  opacity: 0.6;
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 998;
  box-shadow: 0 4px 16px rgba(27,94,69,0.25);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

/* ==========================================
   HAMBURGER & MOBILE MENU
   ========================================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.mobile-menu a {
  padding: 14px 24px;
  color: var(--muted);
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .nav-btn {
  margin: 12px 24px;
  border-radius: 14px;
  justify-content: center;
}

@media(max-width: 900px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }
}

/* ==========================================
   SCROLL SPY NAV ACTIVE
   ========================================== */
nav a.nav-active { color: var(--green); font-weight: 500; }

/* ==========================================
   LETTER READER — TABBED INTERFACE
   ========================================== */
.letter-section { padding: 60px 0; }

.letter-reader {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.letter-nav {
  border-right: 1px solid var(--border);
  padding: 12px 0;
  background: var(--bg);
}

.letter-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.letter-nav-item:hover {
  background: var(--surface);
}

.letter-nav-item.active {
  background: var(--surface);
  border-left-color: var(--green);
}

.chapter-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.chapter-name {
  font-size: 13px;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}

.letter-nav-item.active .chapter-name {
  color: var(--text);
  font-weight: 500;
}

.letter-content-panel {
  padding: 40px 48px;
  max-height: 600px;
  overflow-y: auto;
}

.letter-content-panel::-webkit-scrollbar { width: 4px; }
.letter-content-panel::-webkit-scrollbar-track { background: transparent; }
.letter-content-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.letter-chapter-display {
  transition: opacity 0.25s ease;
}

.letter-chapter-display.fade-out {
  opacity: 0;
}

/* Hidden chapter source data */
.chapter-source-data { display: none; }

@media(max-width: 900px) {
  .letter-reader {
    grid-template-columns: 1fr;
  }
  .letter-nav {
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    overflow-x: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
  }
  .letter-nav-item {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .letter-nav-item.active {
    border-bottom-color: var(--green);
    border-left: none;
    background: var(--surface);
  }
  .letter-content-panel {
    padding: 28px 20px;
    max-height: 500px;
  }
}

/* Letter content inside reader — keep existing quote/story styles */
.letter-chapter-display h3 {
  font-size: 36px;
  margin-bottom: 28px;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
}
.letter-chapter-display p {
  font-size: 19px;
  line-height: 2.1;
  margin-bottom: 28px;
  color: #4B4B4B;
}
.letter-chapter-display .letter-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  line-height: 1.35;
  text-align: center;
  color: var(--green);
  margin: 56px 0;
}
.letter-chapter-display strong { color: var(--green); }
.letter-chapter-display i { font-style: italic; }