/* Odalys Munoz author site
   Warm wine and cream. Preview-ready static styles. */

:root {
  --cream: #f6efe4;
  --cream-deep: #eadfcf;
  --paper: #fffaf3;
  --wine: #641e35;
  --wine-deep: #3d1222;
  --wine-mid: #7a2844;
  --rose: #9a3a54;
  --gold: #b0894f;
  --gold-deep: #7a5a28;
  --ink: #241015;
  --muted: #4a2e34;
  --line: #d9cbb8;
  --focus: #7a5a28;
  --disabled-bg: #e8ddd0;
  --disabled-ink: #5a3f45;
  --shadow: 0 10px 30px rgba(61, 18, 34, 0.08);
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 70rem;
  --narrow: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--wine);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 200;
  background: var(--wine-deep);
  color: var(--cream);
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 0.3rem 0.3rem;
}

.skip-link:focus {
  top: 0;
  color: var(--cream);
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner,
.footer-inner,
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}

.wordmark {
  text-decoration: none;
  color: var(--wine-deep);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.wordmark:hover {
  color: var(--wine);
}

.wordmark-kicker {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
}

.wordmark-name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.35rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--wine);
}

.site-nav a[aria-current="page"] {
  color: var(--wine);
  border-bottom-color: var(--gold);
}

main {
  flex: 1;
}

.hero {
  background:
    linear-gradient(180deg, rgba(61, 18, 34, 0.15), rgba(61, 18, 34, 0.35)),
    linear-gradient(135deg, var(--wine-deep) 0%, var(--wine) 55%, var(--wine-mid) 100%);
  color: var(--cream);
  padding: 4.25rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.6rem;
  color: var(--cream);
}

.hero .lede {
  margin: 0 auto 1.25rem;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #f0d9b0;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--gold);
  margin: 0.5rem 0 1.35rem;
}

.ornament::before,
.ornament::after {
  content: "";
  width: 4.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

.ornament span {
  font-size: 1.1rem;
}

.hero p.welcome {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  font-size: 1.2rem;
  color: #f6efe4;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
}

.btn-light {
  background: var(--cream);
  color: var(--wine-deep);
}

.btn-light:hover {
  background: #fff;
  color: var(--wine);
}

.btn-wine {
  background: var(--wine);
  color: var(--cream);
}

.btn-wine:hover {
  background: var(--wine-mid);
  color: var(--cream);
}

.btn-disabled,
.btn:disabled {
  background: var(--disabled-bg);
  color: var(--disabled-ink);
  border-color: #c9b8a6;
  cursor: not-allowed;
  pointer-events: none;
  font-weight: 700;
}

.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--wine-deep);
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  margin: 0 0 0.4rem;
}

h3 {
  font-size: 1.7rem;
  margin: 0 0 0.35rem;
}

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 0.35rem;
}

.intro {
  max-width: 40rem;
}

.book-feature,
.book-card {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  gap: 1.75rem 2rem;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.book-feature {
  grid-template-columns: minmax(11rem, 16rem) 1fr;
  padding: 1.75rem;
}

.book-card + .book-card {
  margin-top: 1.35rem;
}

.book-meta {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.book-series {
  margin: -0.15rem 0 0.75rem;
  font-style: italic;
  color: var(--muted);
}

.blurb-soon {
  margin: 0 0 1.1rem;
  font-style: italic;
  color: var(--muted);
}

.cover-placeholder {
  aspect-ratio: 2 / 3;
  width: 100%;
  max-width: 16rem;
  margin: 0 auto;
  border-radius: 0.2rem 0.55rem 0.55rem 0.2rem;
  background:
    linear-gradient(90deg, rgba(36, 16, 21, 0.28) 0 0.55rem, transparent 0.55rem),
    linear-gradient(160deg, var(--wine-deep), var(--wine) 45%, var(--rose));
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  box-shadow: 0 8px 20px rgba(61, 18, 34, 0.22);
  border: 1px solid rgba(240, 217, 176, 0.25);
}

.cover-placeholder .cover-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.7rem;
}

.cover-placeholder .cover-note {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f0d9b0;
}

.page-hero {
  padding: 2.75rem 0 1.5rem;
}

.page-hero p {
  max-width: 40rem;
  margin: 0.75rem 0 0;
}

.about-copy {
  max-width: var(--narrow);
}

.about-copy p {
  margin: 0 0 1.15rem;
}

blockquote {
  margin: 2rem 0 0;
  padding: 0.2rem 0 0.2rem 1.25rem;
  border-left: 3px solid var(--gold);
}

blockquote p {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  color: var(--wine-deep);
}

blockquote footer {
  font-size: 1rem;
  color: var(--muted);
  background: none;
  color: var(--muted);
}

.contact-form {
  max-width: 36rem;
  margin-top: 1.75rem;
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 700;
  color: var(--wine-deep);
}

.field .req {
  color: var(--wine);
}

input[type="text"],
input[type="email"],
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid #c9b8a6;
  border-radius: 0.4rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

input:hover,
textarea:hover {
  border-color: var(--wine-mid);
}

textarea {
  min-height: 10rem;
  resize: vertical;
}

.form-actions {
  margin-top: 0.25rem;
}

.site-footer {
  background: var(--wine-deep);
  color: var(--cream);
  padding: 2rem 0;
  margin-top: auto;
}

.site-footer a {
  color: var(--cream);
}

.site-footer a:hover {
  color: #f0d9b0;
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-copy {
  margin: 0;
  color: #f0d9b0;
}

@media (max-width: 720px) {
  .book-feature,
  .book-card {
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: left;
  }

  .cover,
  .cover-placeholder {
    margin-inline: auto;
    max-width: 13.5rem;
  }

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

  .header-inner {
    padding: 0.75rem 0 0.85rem;
  }
}

@media (max-width: 480px) {
  body { font-size: 1.0625rem; }
  .header-inner { gap: 0.65rem 1rem; }
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--wine-deep);
}

.cover {
  width: 100%;
  max-width: 16rem;
  margin: 0 auto;
}

.book-card .cover {
  max-width: 14rem;
}

.cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.2rem 0.5rem 0.5rem 0.2rem;
  box-shadow: 0 8px 20px rgba(61, 18, 34, 0.22);
  background: var(--cream-deep);
}

.author-note {
  margin: 0 0 1rem;
}

.about-label {
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--wine-deep);
}

.blurb {
  margin: 0 0 1.15rem;
}

.blurb p {
  margin: 0 0 0.8rem;
}

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

.buy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.8rem;
  margin: 0;
}

.btn-outline {
  background: transparent;
  color: var(--wine);
  border-color: var(--wine);
}

.btn-outline:hover {
  background: var(--wine);
  color: var(--cream);
}

.formats {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

h2, .page-hero h1, .book-body h2 {
  overflow-wrap: break-word;
  text-wrap: pretty;
}
