/* Granthin Shared Stylesheet */
:root {
  --primary: #92400e;
  --primary-hover: #b45309;
  --accent: #d97706;
  --bg: #fdfbf7;
  --card-bg: #ffffff;
  --text: #1f2937;
  --text-muted: #4b5563;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Header and Navigation */
header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

nav a:hover,
nav a.active {
  color: var(--primary);
  font-weight: 600;
}

/* Page Containers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.container-narrow {
  max-width: 850px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.08) 0%, rgba(253, 251, 247, 0) 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.85rem;
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
}

/* Base Card Panel */
.card-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

/* Mission Section */
.mission {
  margin: 3rem 0;
}

.mission h2 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.mission p {
  margin-bottom: 1rem;
  color: var(--text);
}

/* Books Grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.book-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.book-cover {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
  background: #f3f4f6;
}

.book-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.book-title {
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.book-subtitle {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.book-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.retail-links {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: 0.85rem;
}

.retail-links strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.country-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.country-tags a {
  background: #f3f4f6;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.country-tags a:hover {
  background: var(--primary);
  color: #ffffff;
}

.making-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.making-link:hover {
  text-decoration: underline;
}

/* Forms */
.contact-section {
  max-width: 650px;
  margin: 0 auto;
}

.contact-section h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.contact-section p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

button {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--primary-hover);
}
button:disabled {
  opacity: 0.6;
  cursor: progress;
}
button:focus-visible,
.country-tags a:focus-visible,
nav a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
/* Spam trap: real visitors never see or reach this field. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.5rem;
}
.form-status.ok {
  color: #166534;
}
.form-status.error {
  color: #b91c1c;
}
.cf-turnstile {
  margin-bottom: 1.25rem;
}

/* Behind-the-scenes article */
.story-hero {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.story-hero h1 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.story-category {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-section {
  margin-bottom: 2rem;
}
.article-section h2 {
  font-size: 1.45rem;
  color: var(--primary);
  margin-bottom: 0.85rem;
}
.article-section p {
  margin-bottom: 1.15rem;
  color: var(--text);
}
.artist-card {
  background: #fdf6ec;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}
.artist-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.artist-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.artist-links a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.artist-links a:hover {
  text-decoration: underline;
}

/* Privacy Policy Layout */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.policy-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.policy-header h1 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.effective-date {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.policy-card h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.policy-card h2:first-of-type {
  margin-top: 0;
}

.policy-card p {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.policy-card ul {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--text);
}

.policy-card li {
  margin-bottom: 0.5rem;
}

.policy-card p a,
.article-section p a {
  color: var(--primary);
}
.notice-box {
  background: #fdf6ec;
  border-left: 4px solid var(--accent);
  padding: 1.25rem;
  border-radius: 4px;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: #78350f;
}

.contact-box {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.contact-box h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.contact-box a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: var(--card-bg);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 4rem;
}

footer p {
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--primary);
  text-decoration: none;
}