/* styles.css */
:root {
  --bg: #f3eadf;
  --surface: #fff8ef;
  --surface-2: #ece0d1;
  --text: #2a2019;
  --muted: #6f6156;
  --accent: #5c4233;
  --accent-dark: #402d23;
  --border: #d7c5b1;
  --shadow: 0 12px 32px rgba(42, 32, 25, 0.08);
  --max-width: 1120px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.5), transparent 30%),
    linear-gradient(180deg, #f6efe5 0%, #f1e6d8 100%);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.7;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.narrow {
  max-width: 850px;
}

.section {
  padding: 5rem 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 239, 230, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(215, 197, 177, 0.6);
}

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

.logo {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: 1.2rem;
}

.nav a {
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

/* Hero */

.hero {
  padding-top: 7rem;
  padding-bottom: 4.5rem;
}

.hero-inner {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.94rem;
  font-variant: small-caps;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.hero-text,
.section-heading p,
.about p,
.future p,
.contact-copy p,
.book-content p {
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn-primary,
button {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
button:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.55);
}

/* Books */

.section-heading {
  margin-bottom: 1.8rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem;
}

.book-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* Frame around real cover images */
.book-cover-frame {
  padding: 2.5vw;
  background: linear-gradient(135deg, #ece0d1, #f7eee2);
  position: relative;
}

.book-cover-frame::before {
  content: "";
  position: absolute;
  inset: 0.75rem;
  /*border: 1px solid rgba(90, 72, 58, 0.18);*/
  border-radius: 6px;
}

/* Actual cover images */
.book-cover-image {
  width: 100%;
  aspect-ratio: 4 / 6;
  object-fit: cover;
  border-radius: 4px;
}

/* Text area under covers */
.book-content {
  padding: 1.4rem 1.35rem 1.5rem;
  line-height: 1.5;
}

.book-meta {
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* Future section */

.future {
  background: linear-gradient(180deg, rgba(236, 224, 209, 0.45), rgba(236, 224, 209, 0));
}

/* Contact */

.contact {
  padding-bottom: 6rem;
}

.contact-inner {
  align-items: flex-start;
}

.contact-copy {
  max-width: 520px;
}

.contact-points {
  margin: 1.2rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.contact-form {
  width: min(100%, 460px);
  display: grid;
  gap: 0.9rem;
  padding: 1.3rem;
  background: rgba(255, 248, 239, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffdf9;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(92, 66, 51, 0.18);
  border-color: var(--accent);
}

/* Footer */

.site-footer {
  padding: 1.25rem 0 2rem;
  border-top: 1px solid rgba(215, 197, 177, 0.6);
}

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

/* Responsive */

@media (max-width: 860px) {
  .contact-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .nav {
    gap: 1rem;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }
  .book-grid {
    grid-template-columns: 1fr;
  }
  .book-cover-frame {
    padding: 5vw;
	}
	.book-cover-image {
		max-width: 300px;
  margin: auto;
	}
}
@media (max-width: 300px) {
	.header-inner {
	flex-direction: column;
    align-items: flex-start;
	}
}