/* Typography */
:root {
    --ink: #e6e1d9;
    --ink-2: #f3efe9;
    --gold: #d4b47b;
    --crimson: #8a1420;
    --char: #0b0b0d;
    --stone: #17171b;
    --veil: rgba(0, 0, 0, .35);
    --max: 1180px;
    --border: 3px solid rgba(255,255,255,0.05)
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #0b0b0d;
    color: var(--ink);
    font-family: "Cormorant Garamond", serif;
    font-size: 1em;
    line-height: 1.45;
}

a {
    text-decoration: none;
    color: var(--gold);
}
a:hover {
    text-decoration: underline;
}

.container {
    position: relative;
    max-width: var(--max);
    margin-inline: auto;
    padding: 0 1.125em;
    z-index: 2;
}

section {
    position: relative;
    padding: 2em 0;
    border-bottom: var(--border);
}
header {
    border-bottom: var(--border);
}

section.alt {
    background: rgba(255, 255, 255, .02);
}

.repeat-bg::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    width: 100%; 
    height: 100%;
    filter: opacity(0.1) grayscale(1);
    background-image: url('./images/repeat-bg.jpg');
    background-repeat: repeat;
    background-size: 40em;
}

/* Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5em;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625em 0;
}

.brand img {
    height: 3.25em;
    display: block;
}

.main-nav a {
    color: var(--ink);
    text-decoration: none;
    margin-left: 1.125em;
    font-weight: 600;
    text-transform: uppercase;
}

.main-nav .btn {
    margin-left: 1.375em;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    margin-right: 1.125em;
    vertical-align: middle;
}

.instagram-logo {
    height: 1.5em;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
    vertical-align: middle;
}

.facebook-link {
    display: inline-flex;
    align-items: center;
    margin-right: 1.125em;
    vertical-align: middle;
}

.facebook-logo {
    height: 1.5em;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
    vertical-align: middle;
}

.facebook-link:hover .facebook-logo {
    opacity: 0.8;
}

.instagram-link:hover .instagram-logo {
    opacity: 0.8;
}

/* Mobile Navigation - Hide Books and About links on mobile */
@media (max-width: 768px) {
    .main-nav a[href="#about"],
    .main-nav a[href="#books"] {
        display: none;
    }
}

.action-button {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.25rem;
    background: #8a1420;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0.25rem 0.25rem rgba(0,0,0,0.25);
    text-decoration: none;
    text-transform: uppercase;
  }
  
  .action-button-primary {
    background: #8a1420;
    color: #fff;
    border:none;
  }
  
  @keyframes flash {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  }
  
  .action-button:hover {
    filter: brightness(1.1);
    text-decoration: none;
    animation: flash 0.6s ease-out;
  }
  
  .action-button:active {
    filter: brightness(0.9);
    transform: scale(0.95);
  }

  .action-button-ghost {
    border: 1px solid;
    border-color: var(--gold);
    color: var(--gold);
    background: transparent;
}

.action-button-ghost:hover {}


/* Hero */
.hero {
    position: relative;
    min-height: 66vh;
    display: grid;
    place-items: center;
    padding: 0;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .85));
}

.hero-content {
    position: relative;
    text-align: center;
    margin-top: 8em;
}

.hero-content p {
    font-size: 1.25em;
}

.hero h1 {
    font-family: Cinzel Decorative, serif;
    font-weight: 700;
    font-size: clamp(2.5em, 6vw, 4.5em);
    margin: 0 0 10px;
    color: var(--ink-2);
    text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}

.hero p {
    max-width: 740px;
    margin: 0 auto 22px;
    color: #e7e1d8;
}

/* Grid */
.grid.two {
    display: grid;
    grid-template-columns: 1.5fr 0.5fr;
    gap: 2.25em;
}

@media (max-width: 900px) {
    .grid.two {
        grid-template-columns: 1fr;
    }
}

.book-copy .kicker {
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 1em;
    color: #dacfbf;
}

/* Book Card */
.book-card {
    display: grid;
    grid-template-columns: 0.5fr 1.5fr;
    gap: 1.75em;
    align-items: center;
    max-width: var(--max);
    margin: 0 auto;
}

.book-card .book-art img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5em;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.book-card h2 {
    font-family: Cinzel, serif;
    font-size: clamp(1.75em, 3.8vw, 2.75em);
    margin: 0 0 6px;
}

.book-card .note {
    opacity: .8;
    font-size: .95em;
}

.book-card .cta-row {
    display: flex;
    gap: 0.75em;
    flex-wrap: wrap;
    margin: 0.75em 0 0.375em;
}

/* About */
.about-copy h2,
.newsletter h2,
.links h2 {
    font-family: Cinzel, serif;
    font-size: clamp(1.75em, 3.8vw, 2.625em);
    margin: 0 0 10px;
}

.about-copy p, .book-copy p {
    font-size: 1.25em;
}

.about-art img {
    width: 100%;
    border-radius: 0.625em;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

/* Newsletter */
.signup {
    margin-top: 0.875em;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 1.125em;
    border-radius: 0.75em;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75em;
    align-items: end;
}

@media (max-width: 720px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.375em;
}

.field span {
    font-weight: 600;
}

.field input {
    padding: 0.75em 0.875em;
    border-radius: 0.625em;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .35);
    color: var(--ink);
}

.consent {
    display: flex;
    gap: 0.625em;
    align-items: center;
    margin-top: 0.625em;
    font-size: .95em;
}

.tiny {
    opacity: .7;
    font-size: .9em;
}

/* Links */
.link-list {
    list-style: none;
    padding: 0;
    margin: 0.375em 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.875em;
}

.link-list a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, .3);
}

.link-list a:hover {
    color: #fff;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, .07);
    background: rgba(10, 10, 12, .55);
    text-transform: uppercase;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125em 0;
}

.foot-nav a {
    color: var(--ink);
    text-decoration: none;
    margin-left: 1em;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}