/* =========================================================
HAWAIIAN STORIES INDEX
Mobile-first / Lighthouse-conscious
========================================================= */

:root {
--font-display: "Fraunces", Georgia, serif;
--font-body: "Nunito Sans", system-ui, sans-serif;

--radius-md: 1.25rem;
--radius-lg: 2rem;

--container: 1120px;

--sky-top: #c8f1ff;
--sky-bottom: #006fb3;

--surface: rgba(255, 247, 231, 0.82);
--surface-solid: #fff7e7;

--text: #3b2b20;
--muted: #76624a;
--heading: #2b1d14;

--border: rgba(107, 78, 48, 0.18);

--coral: #c8644a;
--sand: #d8aa65;
--ocean: #2f8f95;
--ocean-dark: #1f6f74;

--transition: 180ms ease;
}

html[data-theme="dark"] {
--sky-top: #1d4f73;
--sky-bottom: #000814;

--surface: rgba(20, 14, 10, 0.84);
--surface-solid: #17100c;

--text: #f2dfbf;
--muted: #bfa782;
--heading: #fff0d1;

--border: rgba(244, 211, 161, 0.12);

--coral: #c96f58;
--sand: #b8925a;
--ocean: #3f8b92;
--ocean-dark: #275f64;
}

/* =========================================================
BASE
========================================================= */

{
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
margin: 0;

min-width: 320px;

color: var(--text);
background:
linear-gradient(
180deg,
var(--sky-top),
var(--sky-bottom)
);

font-family: var(--font-body);
line-height: 1.6;

overflow-x: hidden;
}

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

a {
color: inherit;
text-decoration: none;
}

.container {
width: min(
calc(100% - 2rem),
var(--container)
);

margin-inline: auto;
}

.section {
padding: 4.5rem 0;
}

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

.eyebrow {
display: inline-flex;
align-items: center;
gap: 0.5rem;

margin-bottom: 0.75rem;

color: var(--coral);

font-size: 0.7rem;
font-weight: 900;
letter-spacing: 0.15em;
line-height: 1.2;
text-transform: uppercase;
}

.eyebrow::before {
content: "";

width: 2rem;
height: 2px;

flex: 0 0 auto;

background: var(--coral);
border-radius: 999px;
}

h1,
h2,
h3 {
margin: 0;

color: var(--heading);

line-height: 1.05;
}

h1,
h2 {
font-family: var(--font-display);
font-weight: 800;
letter-spacing: -0.045em;
}

h1 {
font-size: clamp(
3.2rem,
13vw,
7rem
);
}

h2 {
font-size: clamp(
2.35rem,
7vw,
4.4rem
);
}

h3 {
font-family: var(--font-display);
font-size: 1.65rem;
font-weight: 700;
letter-spacing: -0.025em;
}

p {
margin: 0;
color: var(--muted);
}

/* =========================================================
HEADER
========================================================= */

.stories-header {
padding: 1rem 0;

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

.stories-nav {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}

.stories-brand {
display: inline-flex;
align-items: center;
gap: 0.5rem;

color: var(--heading);

font-size: 0.95rem;
font-weight: 900;
}

.stories-brand span:first-child {
font-size: 1.2rem;
}

.stories-nav__home {
color: var(--muted);

font-size: 0.78rem;
font-weight: 800;
}

.stories-nav__home:hover {
color: var(--coral);
}

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

.stories-hero {
position: relative;

padding: 5rem 0 4rem;

background:
linear-gradient(
180deg,
transparent,
rgba(0, 0, 0, 0.035)
);
}

.stories-hero__intro {
max-width: 650px;

margin-top: 1.5rem;

font-size: clamp(
1.05rem,
2.5vw,
1.25rem
);
}

.stories-hero__actions {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 1rem;

margin-top: 2rem;
}

.stories-text-link {
display: inline-flex;
align-items: center;
gap: 0.4rem;

padding: 0.75rem 0;

font-weight: 900;
}

.stories-text-link span {
color: var(--coral);

transition: transform var(--transition);
}

.stories-text-link:hover span {
transform: translateX(4px);
}

/* =========================================================
STORY LIBRARY
========================================================= */

.story-library {
background: var(--surface);
}

.story-library__header {
display: grid;
gap: 1.25rem;

margin-bottom: 2rem;
}

.story-library__header > p {
max-width: 580px;

font-size: 1rem;
}

/* =========================================================
STORY GRID
========================================================= */

.story-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}

.story-index-card {
min-height: 330px;

display: flex;
flex-direction: column;
justify-content: space-between;

padding: 1.4rem;

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

background: var(--surface-solid);

box-shadow:
0 8px 24px rgba(0, 0, 0, 0.05);

transition:
transform var(--transition),
border-color var(--transition);
}

.story-index-card:hover {
transform: translateY(-4px);
border-color: var(--coral);
}

.story-index-card__top {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
}

.story-index-card__number {
color: var(--coral);

font-family: var(--font-display);
font-size: 3rem;
font-weight: 800;
line-height: 1;
}

.story-index-card__category {
padding: 0.4rem 0.65rem;

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

color: var(--muted);

font-size: 0.65rem;
font-weight: 900;
letter-spacing: 0.08em;
text-transform: uppercase;
}

.story-index-card__body {
margin-top: 2rem;
}

.story-index-card h3 {
margin-bottom: 0.7rem;
}

.story-index-card p {
font-size: 0.94rem;
line-height: 1.55;
}

.story-index-card a {
display: inline-flex;
align-items: center;
gap: 0.45rem;

margin-top: 1.2rem;

color: var(--heading);

font-size: 0.85rem;
font-weight: 900;
}

.story-index-card a span {
color: var(--coral);

transition: transform var(--transition);
}

.story-index-card a:hover {
color: var(--coral);
}

.story-index-card a:hover span {
transform: translateX(4px);
}

/* =========================================================
CTA
========================================================= */

.stories-cta {
padding: 4.5rem 0;
}

.stories-cta__inner {
display: grid;
gap: 2rem;

padding: 2rem;

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

background:
linear-gradient(
135deg,
var(--ocean-dark),
var(--ocean)
);

box-shadow:
0 12px 30px rgba(0, 0, 0, 0.08);
}

.stories-cta .eyebrow {
color: #f8d9b2;
}

.stories-cta .eyebrow::before {
background: #f8d9b2;
}

.stories-cta h2 {
color: #fff7e7;
}

.stories-cta p {
max-width: 570px;

margin-top: 1rem;

color: rgba(255, 247, 231, 0.82);
}

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

.stories-footer {
padding: 2rem 0;

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

.stories-footer__top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}

.stories-footer__top > a:last-child {
color: var(--muted);

font-size: 0.8rem;
font-weight: 800;
}

.stories-footer > .container > p {
margin-top: 0.75rem;

font-size: 0.8rem;
}

/* =========================================================
YOUR EXISTING OCEAN BUTTON
========================================================= */

.ocean-btn {
display: inline-flex;
align-items: center;
justify-content: center;

min-height: 48px;

padding: 0.8rem 1.2rem;

border-radius: 999px;

background: var(--coral);
color: #fff8ed;

font-size: 0.85rem;
font-weight: 900;

transition:
transform var(--transition),
background-color var(--transition);
}

.ocean-btn:hover {
transform: translateY(-2px);
background: var(--ocean-dark);
}

/* =========================================================
TABLET
========================================================= */

@media (min-width: 650px) {

.section {
padding: 5.5rem 0;
}

.stories-hero {
padding: 7rem 0 6rem;
}

.story-grid {
grid-template-columns:
repeat(2, minmax(0, 1fr));
}

.story-library__header {
grid-template-columns:
minmax(0, 1fr)
minmax(280px, 0.7fr);

align-items: end;


}

.stories-cta__inner {
padding: 3rem;
}
}

/* =========================================================
DESKTOP
========================================================= */

@media (min-width: 960px) {

.story-grid {
grid-template-columns:
repeat(3, minmax(0, 1fr));
}

.story-index-card {
min-height: 360px;
padding: 1.6rem;
}

.stories-cta__inner {
grid-template-columns:
minmax(0, 1fr)
auto;

align-items: center;


}
}

/* =========================================================
REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

html {
scroll-behavior: auto;
}

.story-index-card,
.story-index-card a span,
.stories-text-link span,
.ocean-btn {
transition: none;
}
}