/* Wake Line Press — shared styles
   Palette: eggshell field, forest green ink accents, vermillion reserved
   for the Tacet mark (matches the printed colophon treatment). */

:root {
    --cream: #f6f3ea;
    --cream-deep: #efece0;
    --ink: #1c201b;
    --forest: #1e3d2b;
    --forest-soft: #3d5c48;
    --rule: #d8d4c4;
    --muted: #6f7468;
    --faint: #9b9f92;
    --vermillion: #b5402c;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

body {
    font-family: Georgia, 'Times New Roman', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--forest);
    color: var(--cream);
}

a {
    color: var(--forest);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--ink);
}

a:focus-visible {
    outline: 2px solid var(--forest);
    outline-offset: 3px;
}

/* ---------- Navigation ---------- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(246, 243, 234, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
    z-index: 100;
    padding: 0.85rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .site-name {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--forest);
}

nav .site-name a {
    color: inherit;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.8rem;
}

nav li a {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

nav li a:hover,
nav li a[aria-current="page"] {
    color: var(--forest);
}

/* ---------- Layout ---------- */

main {
    max-width: 640px;
    margin: 0 auto;
    padding: 8.5rem 1.5rem 4rem;
}

header.masthead {
    margin-bottom: 4.5rem;
    text-align: center;
}

header.masthead h1 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--forest);
    margin-bottom: 0.7rem;
}

header.masthead .tagline {
    font-size: 0.92rem;
    color: var(--muted);
    font-style: italic;
}

/* The wake line — a paired rule with a gap, the press's namesake mark. */
.wake-line {
    width: 88px;
    margin: 1.6rem auto 0;
    border: 0;
    border-top: 1px solid var(--forest);
    position: relative;
}

.wake-line::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 12px;
    right: 12px;
    border-top: 1px solid var(--rule);
}

section {
    margin-bottom: 4.5rem;
}

section h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--forest-soft);
    margin-bottom: 2rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--rule);
}

/* ---------- Book entries ---------- */

.book-entry {
    margin-bottom: 3rem;
}

.book-entry:last-child {
    margin-bottom: 0;
}

.book-entry h3 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    font-style: italic;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.book-entry .attribution {
    font-size: 0.82rem;
    color: var(--faint);
    margin-bottom: 1rem;
}

.book-entry p {
    font-size: 0.92rem;
    color: #333831;
    margin-bottom: 0.9rem;
}

.book-entry p:last-child {
    margin-bottom: 0;
}

.book-entry .specs {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--faint);
    border-top: 1px solid var(--rule);
    padding-top: 0.8rem;
    margin-top: 1.4rem;
}

/* Book entry with a cover image alongside the copy. */
.book-entry--with-cover {
    display: flex;
    gap: 2.2rem;
    align-items: flex-start;
}

.book-entry--with-cover .book-cover {
    width: 152px;
    height: auto;
    flex: 0 0 152px;
    border: 1px solid var(--rule);
    box-shadow: 0 6px 18px rgba(28, 32, 27, 0.14);
}

.book-entry--with-cover .book-copy {
    min-width: 0;
}

@media (max-width: 560px) {
    .book-entry--with-cover {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .book-entry--with-cover .book-cover {
        width: 168px;
        flex: none;
    }
}

/* ---------- Imprint teaser (main page) ---------- */

.imprint-card {
    border: 1px solid var(--rule);
    background: var(--cream-deep);
    padding: 1.8rem 2rem;
}

.imprint-card--with-cover {
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
}

.imprint-card--with-cover .imprint-cover {
    width: 60px;
    height: auto;
    flex: 0 0 60px;
    border: 1px solid var(--rule);
    box-shadow: 0 4px 12px rgba(28, 32, 27, 0.14);
}

.imprint-card .imprint-name {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 0.7rem;
}

.imprint-card p {
    font-size: 0.9rem;
    color: #333831;
    margin-bottom: 1rem;
}

.imprint-card .imprint-link {
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--forest);
    padding-bottom: 1px;
}

.imprint-card .imprint-link:hover {
    border-color: var(--ink);
}

/* ---------- About ---------- */

.about .about-name {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 1.2rem;
}

.about p {
    font-size: 0.92rem;
    color: #333831;
    margin-bottom: 1rem;
}

/* ---------- Tacet page ---------- */

.tacet-mast {
    text-align: center;
    margin-bottom: 4.5rem;
}

/* Dillon's woodcut nun buoy mark, cinnabar-transparent export.
   Vermillion here mirrors the printed colophon/title-page treatment —
   this is the only vermillion on the site. */
.tacet-mark {
    width: 44px;
    height: 64px;
    margin: 0 auto 1.4rem;
    display: block;
    object-fit: contain;
}

.tacet-mast h1 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-indent: 0.34em; /* optically center the tracked caps */
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0.9rem;
}

.tacet-mast .imprint-line {
    font-size: 0.92rem;
    color: var(--muted);
    font-style: italic;
}

.tacet-statement p {
    font-size: 0.95rem;
    color: #333831;
    margin-bottom: 1rem;
}

.tacet-statement .definition {
    font-size: 0.88rem;
    color: var(--muted);
    font-style: italic;
}

/* ---------- Footer ---------- */

footer {
    border-top: 1px solid var(--rule);
    padding: 2.2rem 1.5rem 2.6rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--faint);
}

footer .footer-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--forest-soft);
    margin-bottom: 0.8rem;
}

footer a {
    color: var(--muted);
}

footer a:hover {
    color: var(--forest);
}

footer .contact-email {
    margin-bottom: 0.6rem;
}

footer .social-links {
    margin-bottom: 1.2rem;
}

footer .copyright {
    font-size: 0.75rem;
    color: #b3b6aa;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
    nav {
        padding: 0.6rem 1rem;
    }

    nav ul {
        gap: 1.1rem;
    }

    main {
        padding: 6.5rem 1.2rem 3rem;
    }

    header.masthead h1 {
        font-size: 1.6rem;
    }

    .imprint-card {
        padding: 1.4rem 1.4rem;
    }
}
