/* WamOceanic Publications homepage theme: warm editorial / literary */
:root {
    --pub-ink: #24241f;
    --pub-muted: #69675f;
    --pub-paper: #fbf8f1;
    --pub-white: #fffefa;
    --pub-line: #e5dfd3;
    --pub-rust: #8c402d;
    --pub-rust-dark: #5f2b22;
    --pub-gold: #d4ad69;
    --pub-forest: #263b32;
}
.pub-hero {
    position: relative;
    overflow: hidden;
    background: var(--pub-forest);
    color: #fffefa;
    min-height: 480px;
}
.pub-hero__slides { position: relative; min-height: 480px; }
.pub-hero__slide {
    position: absolute; inset: 0;
    display: grid; grid-template-columns: 1.05fr .95fr;
    align-items: center; gap: clamp(1.5rem, 5vw, 5rem);
    max-width: 1280px; width: 100%; margin: 0 auto;
    padding: clamp(2rem, 6vw, 5.5rem);
    opacity: 0; visibility: hidden; transform: translateX(18px);
    transition: opacity .65s ease, transform .65s ease, visibility .65s;
}
.pub-hero__slide.is-active { position: relative; opacity: 1; visibility: visible; transform: translateX(0); }
.pub-hero__copy { max-width: 650px; z-index: 1; }
.pub-eyebrow {
    color: var(--pub-rust); font-size: .76rem; font-weight: 800;
    letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; margin: 0 0 1rem;
}
.pub-hero .pub-eyebrow { color: var(--pub-gold); }
.pub-hero h1 {
    max-width: 760px; margin: 0 0 1rem; color: var(--pub-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 4.7rem); font-weight: 500; line-height: 1.03;
    letter-spacing: -.035em;
}
.pub-hero__byline { margin: 0 0 .4rem; color: #e4d7c2; font-weight: 700; }
.pub-hero__description { max-width: 570px; margin: 1.25rem 0 1.8rem; color: #e5e8e1; font-size: 1.08rem; line-height: 1.8; }
.pub-hero__art { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 300px; }
.pub-hero__art img { display: block; max-width: 100%; width: auto; max-height: 350px; object-fit: contain; filter: drop-shadow(0 22px 25px #0005); }
.pub-hero__placeholder {
    width: min(100%, 330px); min-height: 300px; padding: 2rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
    border: 1px solid #ffffff38; background: linear-gradient(145deg, #ffffff13, #00000020);
    color: #f2e8d7; text-align: center; font-family: Georgia, serif; font-size: 1.2rem;
    box-shadow: 0 25px 50px #0002; transform: rotate(1.5deg);
}
.placeholder-mark { display: grid; place-items: center; width: 95px; height: 95px; border: 1px solid var(--pub-gold); border-radius: 50%; color: var(--pub-gold); font-size: 4rem; }
.pub-button {
    display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
    min-height: 46px; padding: .75rem 1.2rem; border: 1px solid transparent; border-radius: 2px;
    font-size: .9rem; font-weight: 700; text-decoration: none; transition: .2s ease;
}
.pub-button:hover { transform: translateY(-2px); text-decoration: none; }
.pub-button--light { color: var(--pub-forest); background: var(--pub-white); }
.pub-button--light:hover { color: var(--pub-rust-dark); background: #f0e5d2; }
.pub-button--dark { color: white; background: var(--pub-forest); }
.pub-button--dark:hover { color: white; background: #182920; }
.pub-button--outline { color: var(--pub-forest); background: transparent; border-color: #9d9a8d; }
.pub-button--outline:hover { color: var(--pub-rust-dark); border-color: var(--pub-rust); }
.pub-hero__controls {
    position: absolute; z-index: 2; bottom: 1.2rem; left: clamp(2rem, 6vw, 5.5rem);
    display: flex; align-items: center; gap: .8rem;
}
.pub-slider-arrow, .pub-slider-pause {
    display: inline-grid; place-items: center; min-width: 36px; height: 36px;
    border: 1px solid #ffffff75; background: transparent; color: white; cursor: pointer;
}
.pub-slider-pause { padding: 0 .75rem; font-size: .75rem; }
.pub-slider-dots { display: flex; align-items: center; gap: .45rem; }
.pub-slider-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #ffffff70; cursor: pointer; }
.pub-slider-dot.is-active { width: 25px; border-radius: 8px; background: var(--pub-gold); }
.pub-section { padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 5vw, 4rem); background: var(--pub-white); }
.pub-section--tint { background: var(--pub-paper); }
.pub-section-heading { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.pub-section-heading h2, .pub-service-cta h2 {
    margin: 0 0 .9rem; color: var(--pub-ink); font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 500; line-height: 1.12; letter-spacing: -.025em;
}
.pub-section-heading > p:not(.pub-eyebrow) { margin: 0 auto; max-width: 700px; color: var(--pub-muted); line-height: 1.8; }
.pub-section-heading--row { max-width: 1160px; display: flex; align-items: end; justify-content: space-between; gap: 2rem; text-align: left; }
.pub-section-heading--row > div { max-width: 720px; }
.pub-section-heading--row > div > p:not(.pub-eyebrow) { margin: 0; }
.pub-text-link { flex-shrink: 0; color: var(--pub-rust); font-weight: 700; text-decoration: none; }
.pub-text-link:hover { text-decoration: underline; }
.pub-feature-grid, .pub-book-grid, .pub-author-grid, .pub-event-list { max-width: 1160px; margin: 0 auto; }
.pub-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pub-feature-card { padding: 1.5rem; border: 1px solid var(--pub-line); background: var(--pub-white); }
.pub-feature-card__number { color: var(--pub-rust); font-size: .8rem; font-weight: 800; letter-spacing: .1em; }
.pub-feature-card h3 { margin: 1rem 0 .65rem; color: var(--pub-ink); font-family: Georgia, serif; font-size: 1.3rem; font-weight: 500; }
.pub-feature-card p { margin: 0; color: var(--pub-muted); font-size: .94rem; line-height: 1.75; }
.pub-section-action { margin-top: 2rem; text-align: center; }
.pub-book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.pub-book-card { min-width: 0; }
.pub-book-card__cover {
    display: grid; place-items: center; min-height: 290px; padding: 1rem;
    background: #eee8dc; text-decoration: none;
}
.pub-book-card__cover img { max-width: 100%; max-height: 280px; object-fit: contain; box-shadow: 0 8px 18px #24241f20; }
.pub-cover-placeholder { display: grid; place-items: center; width: 150px; height: 220px; background: var(--pub-forest); color: var(--pub-gold); text-align: center; font: 3rem Georgia, serif; box-shadow: 0 8px 18px #24241f20; }
.pub-cover-placeholder small { max-width: 100px; font: .65rem Arial, sans-serif; }
.pub-book-card__details { padding: 1rem .2rem; }
.pub-book-card h3 { margin: 0 0 .4rem; font: 500 1.2rem/1.35 Georgia, serif; }
.pub-book-card h3 a { color: var(--pub-ink); text-decoration: none; }
.pub-book-card h3 a:hover { color: var(--pub-rust); }
.pub-book-card__details p { margin: 0 0 .6rem; color: var(--pub-muted); font-size: .9rem; }
.pub-tag { display: inline-block; padding: .2rem .55rem; border: 1px solid var(--pub-line); color: var(--pub-muted); font-size: .72rem; }
.pub-author-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pub-author-card { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--pub-line); color: inherit; text-decoration: none; }
.pub-author-card:hover { border-color: var(--pub-rust); background: var(--pub-paper); }
.pub-author-card img, .pub-author-card__initial { display: grid; place-items: center; width: 68px; height: 68px; flex: 0 0 68px; border-radius: 50%; object-fit: cover; background: #e9e0d0; color: var(--pub-rust); font: 1.7rem Georgia, serif; }
.pub-author-card__text { display: grid; gap: .25rem; }
.pub-author-card__text strong { color: var(--pub-ink); font: 500 1.1rem Georgia, serif; }
.pub-author-card__text span { color: var(--pub-muted); font-size: .82rem; }
.pub-author-card__arrow { margin-left: auto; color: var(--pub-rust); }
.pub-section--dark { color: #f8f5ee; background: var(--pub-forest); }
.pub-section--dark .pub-eyebrow { color: var(--pub-gold); }
.pub-section--dark .pub-section-heading h2 { color: #fffefa; }
.pub-section--dark .pub-section-heading > p:not(.pub-eyebrow) { color: #d3d9d1; }
.pub-event-row { display: grid; grid-template-columns: 100px 1fr 40px; align-items: center; gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid #ffffff30; }
.pub-event-date { display: grid; gap: .1rem; color: #e2d2b7; text-align: center; }
.pub-event-date strong { font: 2.3rem Georgia, serif; }
.pub-event-date span { font-size: .78rem; }
.pub-event-copy h3 { margin: 0 0 .35rem; color: white; font: 500 1.35rem Georgia, serif; }
.pub-event-copy p { margin: 0; color: #d3d9d1; line-height: 1.65; }
.pub-event-link { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ffffff70; color: white; text-decoration: none; }
.pub-service-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 5vw, 4rem); background: #eee6d8; }
.pub-service-cta > div:first-child { max-width: 760px; }
.pub-service-cta .pub-eyebrow { margin-bottom: .8rem; }
.pub-service-cta p:not(.pub-eyebrow) { margin: 0; max-width: 700px; color: var(--pub-muted); line-height: 1.8; }
.pub-service-cta__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
@media (max-width: 900px) {
    .pub-hero, .pub-hero__slides { min-height: 440px; }
    .pub-hero__slide { gap: 1.5rem; padding: 3rem 2rem 5rem; }
    .pub-hero__art { min-height: 250px; }
    .pub-hero__art img { max-height: 270px; }
    .pub-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pub-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pub-author-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .pub-hero, .pub-hero__slides { min-height: 0; }
    .pub-hero__slide { grid-template-columns: 1fr; gap: 1.4rem; padding: 2.5rem 1.25rem 5rem; }
    .pub-hero__copy { order: 1; }
    .pub-hero__art { order: 0; min-height: 150px; }
    .pub-hero__art img { max-height: 190px; }
    .pub-hero__placeholder { min-height: 160px; width: 190px; }
    .placeholder-mark { width: 60px; height: 60px; font-size: 2.5rem; }
    .pub-hero h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
    .pub-hero__controls { left: 1.25rem; bottom: .8rem; }
    .pub-section-heading--row { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .pub-feature-grid, .pub-book-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
    .pub-feature-card { padding: 1rem; }
    .pub-book-card__cover { min-height: 210px; padding: .5rem; }
    .pub-book-card__cover img { max-height: 200px; }
    .pub-event-row { grid-template-columns: 65px 1fr 30px; gap: .75rem; }
    .pub-event-date strong { font-size: 1.8rem; }
    .pub-event-copy h3 { font-size: 1.1rem; }
    .pub-service-cta { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .pub-hero__slide, .pub-button { transition: none; }
}
