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

:root {
    /* Amazon deep-water palette, recast as editorial paper-and-lacquer —
       celadon paper ground, deep-water ink, discus turquoise + coral as accent */
    --void: #0b1a24;
    --water: #12283a;
    --water-light: #1c3a52;
    --pearl: #edf1ea;
    --pearl-dim: #e0e6da;
    --paper: #f7f8f2;
    --ink: #14232c;
    --ink-soft: #4c6069;
    --ink-faint: #7c8a88;
    --turquoise: #2fa4a0;
    --turquoise-deep: #1f7672;
    --coral: #c8393f;
    --coral-deep: #9c2a2f;
    --rule: #d3d9c9;
    --rule-strong: #14232c;
    --border-soft: rgba(20, 35, 44, 0.14);

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;

    /* fluid editorial type scale */
    --step-1: 1.05rem;
    --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 1.9rem);
    --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.5rem);
    --step-4: clamp(2.4rem, 1.7rem + 3.2vw, 3.6rem);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--ink);
    background: var(--pearl);
    font-feature-settings: "kern", "liga";
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: inherit;
}

/* Breadcrumbs */
.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
    margin: 1.4rem 0 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.breadcrumb li + li::before {
    content: "/";
    color: var(--ink-faint);
}

.breadcrumb a {
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
    color: var(--turquoise-deep);
    border-bottom-color: var(--turquoise-deep);
}

.breadcrumb li[aria-current="page"] {
    color: var(--ink);
}

/* Eyebrow / section-label — mono, uppercase, tracked out */
.eyebrow,
.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: block;
}

/* Navigation */
.navbar {
    background: var(--void);
    padding: 1.1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(238, 241, 234, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pearl);
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--pearl-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--coral);
}

/* Hero — full-bleed specimen photograph, editorial left-aligned label */
.hero {
    position: relative;
    color: var(--pearl);
    padding: 6rem 0 4.5rem;
    background: linear-gradient(180deg, rgba(11, 26, 36, 0.55) 0%, rgba(11, 26, 36, 0.9) 100%),
                url('https://cdn11.bigcommerce.com/s-zjvg3/images/stencil/1280x1280/products/763/14003/70595067765__2686BC60-9421-4FB6-B656-C59F903B15DD__28198.1716322087.jpg?c=2') center 35% / cover no-repeat;
    background-color: var(--void);
    text-align: left;
}

.hero .container {
    max-width: 720px;
}

.hero .eyebrow {
    color: var(--turquoise);
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: var(--step-4);
    line-height: 1.04;
    letter-spacing: -0.01em;
    margin-bottom: 1.1rem;
    font-weight: 600;
    font-optical-sizing: auto;
}

.hero .tagline {
    font-size: 1.15rem;
    margin-bottom: 2.2rem;
    color: var(--pearl-dim);
    max-width: 34rem;
}

.hero .photo-credit {
    position: absolute;
    bottom: 0.9rem;
    right: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: rgba(238, 241, 234, 0.55);
}

.hero .photo-credit a {
    color: rgba(238, 241, 234, 0.75);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.15s;
    display: inline-block;
    border: 1.5px solid transparent;
    border-radius: 2px;
}

.btn-primary {
    background: var(--coral);
    color: var(--pearl);
}

.btn-primary:hover {
    background: var(--coral-deep);
}

.btn-secondary {
    background: transparent;
    color: var(--pearl);
    border-color: rgba(238, 241, 234, 0.4);
}

.btn-secondary:hover {
    border-color: var(--pearl);
    background: rgba(238, 241, 234, 0.08);
}

/* Main Content */
main {
    padding: 4rem 0;
}

h2 {
    font-family: var(--font-display);
    font-size: var(--step-3);
    color: var(--ink);
    margin-bottom: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.005em;
}

h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    color: var(--ink);
    font-weight: 600;
}

section {
    margin-bottom: 4.5rem;
}

.intro {
    max-width: 62ch;
}

.intro p {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--ink-soft);
    margin-bottom: 1rem;
}

/* Pillars — editorial doorway list, not identical cards */
.pillars {
    display: flex;
    flex-direction: column;
    border-top: 2px solid var(--rule-strong);
}

.pillar {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    padding: 1.9rem 0;
    border-bottom: 1px solid var(--rule);
}

.pillar h3 a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pillar h3 a::after {
    content: "\2192";
    color: var(--turquoise);
    display: inline-block;
    transition: transform 0.2s ease;
}

.pillar h3 a:hover {
    color: var(--turquoise-deep);
}

.pillar h3 a:hover::after {
    transform: translateX(4px);
}

.pillar p {
    color: var(--ink-soft);
    font-size: 0.98rem;
    max-width: 52ch;
}

/* Variety Grid — thin-rule doorways; photos still carry the visual weight */
.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem 1.75rem;
}

.species-card {
    border-top: 2px solid var(--rule-strong);
    background: transparent;
    transition: opacity 0.15s;
    padding: 1.4rem 0 0;
}

.species-card.has-photo {
    border-top-color: var(--coral);
}

.species-card .thumb {
    width: 100%;
    margin: 0 0 1.2rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.species-card .swatch {
    width: 100%;
    margin: 0 0 1.2rem;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.species-card .swatch .sci-name {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.9);
}

.species-card .body {
    padding: 0;
}

.species-card .sci-name-small {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--turquoise-deep);
    display: block;
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
}

.species-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
}

.species-card h3 a {
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

.species-card h3 a::after {
    content: "\2192";
    font-size: 0.9em;
    color: var(--coral);
    transition: transform 0.2s ease;
}

.species-card h3 a:hover {
    color: var(--coral-deep);
}

.species-card h3 a:hover::after {
    transform: translateX(4px);
}

.species-card p {
    color: var(--ink-soft);
    font-size: 0.94rem;
}

.species-card strong {
    color: var(--coral-deep);
}

/* FAQ */
.faq {
    margin: 3rem 0;
    padding-top: 2.5rem;
    border-top: 1px solid var(--rule);
}

.faq-item {
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--rule);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    margin-bottom: 0.5rem;
}

.faq-item p {
    margin: 0;
}

/* CTA Footer */
.cta-footer {
    background: var(--water);
    color: var(--pearl);
    padding: 2.75rem;
}

.cta-footer h2 {
    color: var(--pearl);
}

.cta-footer p {
    color: var(--pearl-dim);
}

.cta-footer a {
    color: var(--coral);
    text-decoration: none;
    font-weight: 600;
}

.cta-footer a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--void);
    color: var(--pearl-dim);
    padding: 2.75rem 0;
    border-top: 1px solid rgba(238, 241, 234, 0.08);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    opacity: 0.75;
    letter-spacing: 0.02em;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--pearl-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--coral);
}

/* Variety page color banner — used when no verified photograph is available */
.species-hero {
    margin: 0 calc(-50vw + 50%);
    padding: 3.5rem 2rem;
    color: var(--pearl);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 220px;
}

.species-hero .sci-name {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.3rem;
    letter-spacing: 0.03em;
}

.species-hero h1 {
    font-family: var(--font-display);
    font-size: var(--step-3);
    color: var(--pearl);
    margin: 0;
}

/* Typography for Content Pages */
.content {
    max-width: 72ch;
    margin: 0 auto;
    padding: 3rem 0;
}

.content h1 {
    font-family: var(--font-display);
    font-size: var(--step-4);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.content .meta {
    font-family: var(--font-mono);
    color: var(--ink-faint);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    margin-bottom: 2.2rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--rule);
}

.content h2 {
    margin-top: 2.6rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--rule-strong);
}

.content h3 {
    margin-top: 1.6rem;
}

.content p {
    margin-bottom: 1.1rem;
    line-height: 1.8;
}

.content ul, .content ol {
    margin-left: 1.6rem;
    margin-bottom: 1.1rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content strong {
    color: var(--coral-deep);
    font-weight: 600;
}

.content em {
    font-style: italic;
    color: var(--ink-soft);
}

.content figure {
    margin: 2.2rem 0;
}

.content figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-top: 2px solid var(--turquoise);
    background: var(--ink-faint, #ddd);
}

.content figcaption {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-faint);
    margin-top: 0.6rem;
    letter-spacing: 0.01em;
}

.content figcaption a {
    color: var(--turquoise-deep);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    border-top: 2px solid var(--rule-strong);
}

.specs-table th {
    background: none;
    color: var(--ink-faint);
    padding: 0.85rem 1rem 0.6rem 0;
    text-align: left;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.specs-table td {
    padding: 0.8rem 1rem 0.8rem 0;
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

.specs-table tr:nth-child(odd) td {
    background: none;
}

.callout {
    background: var(--paper);
    border-left: 3px solid var(--coral);
    padding: 1.5rem 1.7rem;
    margin: 1.8rem 0;
}

.callout strong {
    display: block;
    margin-bottom: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--ink);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .pillar {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}
