@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&display=swap');

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

html {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { background: #fff; color: #000; line-height: 1.6; }

::selection { background: #000; color: #fff; }

h1, h2, h3, h4, h5, h6 { font-family: 'Crimson Text', Georgia, serif; }

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

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

/* Layout */
.site { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; }
.container { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }

/* Nav */
.nav { border-bottom: 1px solid #e5e5e5; background: #fff; position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 4rem; }
.nav-brand { font-family: 'Crimson Text', Georgia, serif; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.025em; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: #737373; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #000; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: #525252; }
.nav-toggle:hover { color: #000; }
.nav-mobile { display: none; border-top: 1px solid #e5e5e5; padding: 1rem 0; }
.nav-mobile a { display: block; font-size: 0.875rem; font-weight: 500; color: #737373; padding: 0.25rem 0; transition: color 0.2s; }
.nav-mobile a:hover, .nav-mobile a.active { color: #000; }

/* Footer */
.footer { border-top: 1px solid #e5e5e5; margin-top: 5rem; }
.footer-inner { padding: 2.5rem 0; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.footer-brand { font-family: 'Crimson Text', Georgia, serif; font-weight: 600; font-size: 0.875rem; }
.footer-tagline { color: #737373; font-size: 0.75rem; margin-top: 0.25rem; }
.footer-links { display: flex; gap: 1.5rem; font-size: 0.75rem; color: #737373; }
.footer-links a:hover { color: #000; }
.footer-copy { border-top: 1px solid #e5e5e5; margin-top: 1.5rem; padding-top: 1.5rem; font-size: 0.75rem; color: #a3a3a3; }

/* Hero */
.hero { padding: 6rem 0 0.5rem; }
.hero h1 { font-size: 3rem; font-weight: 700; line-height: 1.1; margin-bottom: 2rem; }
.hero .tagline { font-size: 1.25rem; font-family: 'Crimson Text', Georgia, serif; font-style: italic; color: #525252; margin-bottom: 1.5rem; max-width: 65ch; }
.hero .desc { color: #525252; max-width: 65ch; margin-bottom: 0.5rem; }
.btn { display: inline-block; background: #000; color: #fff; padding: 0.75rem 2rem; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.025em; transition: background 0.2s; }
.btn:hover { background: #262626; }
.btn-outline { background: transparent; color: #000; border: 1px solid #000; }
.btn-outline:hover { background: #fafafa; }

/* Featured / Latest */
.latest { padding: 2rem 0; background: #fafafa; }
.latest h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 2.5rem; }
.featured-card { border: 2px solid #000; padding: 1.5rem; }
.featured-card-inner { display: flex; flex-direction: column; gap: 1.5rem; }
.featured-card img { aspect-ratio: 2/3; width: 100%; object-fit: cover; }
.featured-card-text h3 { font-size: 1.5rem; font-weight: 700; font-family: 'Crimson Text', Georgia, serif; margin-bottom: 0.75rem; }
.featured-card-text p { color: #525252; font-size: 0.875rem; line-height: 1.6; margin-bottom: 1rem; }
.featured-card-text .link { font-size: 0.875rem; font-weight: 500; }
.featured-card-text .link:hover { text-decoration: underline; }


/* Page header */
.page-section { padding: 4rem 0; }
.page-title { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.page-subtitle { color: #525252; max-width: 65ch; margin-bottom: 4rem; }

/* About */
.about-text { margin-bottom: 4rem; }
.about-text p { color: #525252; margin-bottom: 1.5rem; max-width: 65ch; }
.about-cta { background: #fafafa; padding: 2rem; text-align: center; }
.about-cta p { color: #525252; margin-bottom: 1rem; }

/* Books */
.book-featured { margin-bottom: 5rem; }
.book-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.book-cover { aspect-ratio: 2/3; background: #e5e5e5; display: flex; align-items: center; justify-content: center; border: 1px solid #d4d4d4; }
.book-cover span { color: #a3a3a3; font-size: 0.875rem; }
.book-details .status { font-size: 0.75rem; color: #737373; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.book-details h2 { font-size: 2.25rem; font-weight: 700; font-family: 'Crimson Text', Georgia, serif; margin-bottom: 0.5rem; }
.book-details .author { color: #737373; margin-bottom: 1.25rem; }
.book-details .description { margin-bottom: 1.5rem; }
.book-details .description p { color: #525252; margin-bottom: 1rem; max-width: 65ch; }
.book-meta { font-size: 0.875rem; color: #737373; margin-bottom: 1.5rem; }
.book-meta p { margin-bottom: 0.25rem; }
.book-meta strong { color: #000; font-weight: 500; }
.book-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

.divider { border: none; border-top: 1px solid #e5e5e5; margin: 0 0 4rem; }

.forthcoming-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.forth-card { border: 1px solid #e5e5e5; padding: 1.5rem; }
.forth-card .cover-placeholder { aspect-ratio: 2/3; background: #f5f5f5; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; }
.forth-card .cover-placeholder span { color: #a3a3a3; font-size: 0.875rem; }
.forth-card .date { font-size: 0.75rem; color: #737373; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.forth-card h3 { font-size: 1.25rem; font-weight: 700; font-family: 'Crimson Text', Georgia, serif; margin-bottom: 0.5rem; }
.forth-card .author { color: #737373; font-size: 0.875rem; margin-bottom: 0.75rem; }
.forth-card p { color: #525252; font-size: 0.875rem; line-height: 1.6; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.contact-info h3 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.contact-info p, .contact-info a { color: #525252; font-size: 0.875rem; }
.contact-info a:hover { color: #000; }
.contact-info .info-block { margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid #d4d4d4; font-size: 0.875rem;
  font-family: 'Inter', system-ui, sans-serif; outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: #000; box-shadow: 0 0 0 2px rgba(0,0,0,0.1); }

/* Responsive */
@media (min-width: 768px) {
  .hero h1 { font-size: 3.75rem; }
  .featured-card-inner { flex-direction: row; }
  .featured-card img { width: 50%; flex-shrink: 0; }
  .featured-card-text { display: flex; flex-direction: column; justify-content: center; }
  .book-grid { grid-template-columns: 2fr 3fr; }
  .forthcoming-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 2fr; }
  .nav-toggle { display: none; }
}

/* Buy */
.buy-details { margin-top: 2rem; }
.buy-details p { color: #525252; font-size: 0.95rem; margin-bottom: 1rem; }
.buy-market-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid #e5e5e5; }
.buy-market-row:last-child { border-bottom: none; }
.buy-pair { display: flex; gap: 1.5rem; align-items: start; padding: 1.25rem; border-radius: 8px; }
.buy-pair-pb { background: #fafafa; }
.buy-pair-hb { background: #f5f5f5; }
.buy-pair-label { font-family: 'Crimson Text', Georgia, serif; font-weight: 400; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #a3a3a3; writing-mode: vertical-lr; transform: rotate(180deg); white-space: nowrap; }
.buy-qr { flex-shrink: 0; width: 120px; }
.buy-qr img { width: 120px; max-width: 120px; height: auto; }
.buy-widget { border: 1px solid #e5e5e5; border-radius: 12px; padding: 15px; display: flex; width: 300px; }
.buy-widget-cover { flex: 0 0 96px; padding-right: 15px; }
.buy-widget-cover img { width: 96px; height: auto; }
.buy-widget-info { flex: 1; }
.buy-widget-title { font-family: 'Inter', system-ui, sans-serif; font-weight: 700; font-size: 0.95rem; line-height: 1.4; color: #000; padding: 5px; }
.buy-widget-author { font-family: 'Inter', system-ui, sans-serif; font-style: italic; font-size: 0.8rem; line-height: 1.4; color: #737373; padding: 5px; }
.buy-widget-btn { display: inline-block; background: #FEBE10; border-radius: 8px; color: #000; text-decoration: none; padding: 6px 20px; font-family: 'Inter', system-ui, sans-serif; font-weight: 700; font-size: 0.95rem; text-align: center; margin-top: 5px; transition: opacity 0.2s; }
.buy-widget-btn:hover { opacity: 0.9; }
.buy-format-label { font-family: 'Crimson Text', Georgia, serif; font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.02em; color: #000; margin-bottom: 1.5rem; }
.buy-qr-irish img { border: 6px solid #169b62; border-radius: 4px; }
.buy-fulfillment { font-family: 'Crimson Text', Georgia, serif; font-weight: 400; font-style: italic; font-size: 1rem; color: #737373; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #e5e5e5; }
.buy-widget-btn-irish { background: #169b62; color: #fff; }
.buy-widget-btn-irish:hover { opacity: 0.9; }

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile.open { display: block; }
  .buy-market-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .buy-pair { flex-direction: column; align-items: center; }
  .buy-pair-label { writing-mode: horizontal-tb; transform: none; }
  .buy-widget { width: 100%; }
}
