/* ==========================================================================
   Boris Naturi UK — design tokens
   ========================================================================== */
:root {
  --bg: #F5F0E7;
  --bg-sand: #E7D7C1;
  --text: #292723;
  --text-muted: #5c584f;
  --accent: #A75D43;
  --accent-dark: #8a4a35;
  --accent-green: #4F6254;
  --border: #d9cdb8;
  --white: #fffdf9;
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(41, 39, 35, 0.08);
  --wrap: 1180px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
blockquote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  border-left: 3px solid var(--accent);
  margin: 1.5em 0;
  padding: 0.2em 0 0.2em 1.2em;
  color: var(--text);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent);
  color: #fff; padding: 0.75em 1.2em; z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent-green);
  outline-offset: 2px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }

.section { padding: 64px 0; }
.section--sand { background: var(--bg-sand); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 0.6em;
}
.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 640px; }
.muted { color: var(--text-muted); }
.muted.small { font-size: 0.9rem; }
.badge {
  display: inline-block; background: var(--bg-sand); color: var(--accent-dark);
  padding: 0.4em 1em; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline { background: transparent; border-color: var(--text); color: var(--text); }
.btn--outline:hover { background: var(--text); color: var(--bg); }
.btn--amazon { background: #232323; color: #fff; }
.btn--amazon:hover { background: #000; }
.btn--small { padding: 0.5em 1.1em; font-size: 0.85rem; }
.btn--block { width: 100%; }

.read-more { font-weight: 600; color: var(--accent-dark); display: inline-block; margin-top: 0.4em; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: relative; z-index: 100; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--text); }
.brand__tag { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-dark); }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a:not(.btn) { color: var(--text); font-weight: 500; }
.primary-nav a:not(.btn):hover { color: var(--accent-dark); text-decoration: none; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; }

.breadcrumbs { background: var(--bg-sand); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; margin: 0; font-size: 0.85rem; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; color: #fff; }
.hero__media { position: relative; height: 68vh; min-height: 420px; max-height: 720px; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(41,39,35,0.15) 0%, rgba(41,39,35,0.55) 85%);
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: 48px; z-index: 2;
}
.hero__content h1 { color: #fff; max-width: 780px; }
.hero__lead { color: #f1ece1; font-size: 1.15rem; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; margin-top: 1.4em; flex-wrap: wrap; }
.hero__actions .btn--outline { border-color: #fff; color: #fff; }
.hero__actions .btn--outline:hover { background: #fff; color: var(--text); }

/* ==========================================================================
   Featured book
   ========================================================================== */
.featured-book__inner { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.featured-book__actions { display: flex; gap: 14px; margin-top: 1.4em; flex-wrap: wrap; align-items: center; }

/* ==========================================================================
   Book covers & grids
   ========================================================================== */
.book-cover {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 4px; box-shadow: var(--shadow);
}
.book-cover--placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(160deg, var(--accent-green) 0%, #35402f 100%);
  color: #f5f0e7; padding: 1.5em; font-family: var(--font-heading); font-size: 1.15rem; gap: 0.5em;
}
.book-cover--placeholder em { font-style: normal; font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }

.book-grid { display: grid; gap: 32px; margin: 28px 0; }
.book-grid--3 { grid-template-columns: repeat(3, 1fr); }
.book-grid--4 { grid-template-columns: repeat(4, 1fr); }
.book-grid--1 { grid-template-columns: minmax(220px, 320px); }
.book-grid__aside {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 0.5em;
}
.book-card h3 { font-size: 1.1rem; margin: 0.6em 0 0.2em; }
.book-card__series { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* ==========================================================================
   Editorial feature band
   ========================================================================== */
.editorial-feature { background: var(--accent-green); color: #f5f0e7; }
.editorial-feature__inner { max-width: 700px; }
.editorial-feature h2 { color: #fff; }
.editorial-feature .btn--outline { border-color: #fff; color: #fff; }
.editorial-feature .btn--outline:hover { background: #fff; color: var(--accent-green); }

/* ==========================================================================
   UK naturism tiles
   ========================================================================== */
.uk-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 24px; }
.uk-grid--large { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.uk-tile {
  display: flex; flex-direction: column; gap: 6px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; color: var(--text); transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.uk-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.uk-tile__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }
.uk-tile__desc { color: var(--text-muted); font-size: 0.92rem; }
.uk-tile__link { color: var(--accent-dark); font-weight: 600; font-size: 0.88rem; margin-top: auto; }
.uk-tile--large { padding: 28px; min-height: 150px; justify-content: space-between; }

/* ==========================================================================
   Articles
   ========================================================================== */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 24px; }
.article-grid--wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.article-card__image {
  display: block; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-green) 100%);
  position: relative; margin-bottom: 14px;
}
.article-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card__category {
  position: absolute; left: 12px; bottom: 12px; background: rgba(41,39,35,0.65); color: #fff;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.35em 0.8em; border-radius: 999px;
}
.article-card h3 { font-size: 1.15rem; margin: 0 0 0.35em; }
.category-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pill {
  background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 0.4em 1em;
  font-size: 0.82rem; color: var(--text-muted);
}

.article-page__meta { color: var(--text-muted); font-size: 0.92rem; }
.article-page__hero {
  aspect-ratio: 21/9; border-radius: var(--radius); margin: 24px 0 8px; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--bg-sand) 140%);
}
.article-page__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-body h2 { margin-top: 1.6em; font-size: 1.5rem; }
.article-body p, .article-body ul { max-width: 68ch; }
.article-body ul { max-width: 68ch; }
.continue-exploring { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 32px; }
.continue-exploring h2 { font-size: 1.3rem; }

/* ==========================================================================
   Book detail page
   ========================================================================== */
.book-hero__inner { display: grid; grid-template-columns: 300px 1fr; gap: 56px; }
.book-hero__author { color: var(--text-muted); margin-top: -0.5em; }
.book-hero__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 1.2em 0; }
.book-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 1.5em; padding-top: 1.2em; border-top: 1px solid var(--border); }
.book-meta div { display: flex; flex-direction: column; }
.book-meta dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.book-meta dd { margin: 0; font-weight: 600; }

.book-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.book-detail-grid__main > div { margin-bottom: 2.4em; }
.buy-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: sticky; top: 24px; }
.buy-box__amazon { font-weight: 700; font-size: 1.3rem; margin: 0 0 0.6em; }
.buy-box__amazon span { color: #999; font-weight: 400; }
.buy-box ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
.buy-box li { padding: 0.3em 0; font-size: 0.92rem; }
.buy-box li::before { content: '\2713 '; color: var(--accent-green); font-weight: 700; }

/* ==========================================================================
   Beach / FAQ lists
   ========================================================================== */
.beach-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.beach-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.beach-card__region { color: var(--accent-dark); font-weight: 600; font-size: 0.85rem; margin-bottom: 0.6em; }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-item:first-child { padding-top: 0; }
.resource-list { list-style: none; padding: 0; }
.resource-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }

/* ==========================================================================
   Book promo (inline, used in article bodies)
   ========================================================================== */
.book-promo {
  display: flex; gap: 20px; align-items: center; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 2em 0;
}
.book-promo__cover { width: 90px; flex-shrink: 0; }
.book-promo__lead { margin-bottom: 0.3em; }
.book-promo__title { color: var(--accent-dark); font-family: var(--font-heading); font-size: 1.1rem; margin: 0 0 0.3em; }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter-band { background: var(--text); color: var(--bg); padding: 56px 0; }
.newsletter-band h2 { color: #fff; }
.newsletter-band p { color: #cfc9bc; }
.newsletter-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type=email] {
  padding: 0.85em 1.1em; border-radius: var(--radius); border: 1px solid #55524a; background: #34322c; color: #fff; min-width: 240px;
}
.newsletter-form input[type=email]::placeholder { color: #a39d8f; }
.newsletter-form--page { flex-direction: column; align-items: stretch; max-width: 420px; margin: 0 auto; }
.newsletter-form--page label { font-weight: 600; margin-bottom: 0.3em; }
.newsletter-form--page input[type=email] { border: 1px solid var(--border); background: var(--white); color: var(--text); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-notice { padding: 1em 1.2em; border-radius: var(--radius); background: var(--bg-sand); margin-bottom: 1.5em; }
.form-notice--success { background: #dfe8de; }
.form-notice--error { background: #f3dbd3; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #211f1c; color: #cfc9bc; padding: 56px 0 0; }
.site-footer a { color: #cfc9bc; }
.site-footer a:hover { color: #fff; }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.site-footer__brand .brand__name { color: #fff; font-size: 1.4rem; }
.site-footer__uk { font-size: 0.85rem; margin-top: 1em; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-body); }
.site-footer__bottom { border-top: 1px solid #3a372f; padding: 20px 0; font-size: 0.82rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .featured-book__inner, .book-hero__inner, .book-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .book-detail-grid__side { order: -1; }
  .buy-box { position: static; }
  .uk-grid { grid-template-columns: repeat(2, 1fr); }
  .uk-grid--large { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .book-grid--4, .book-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .beach-list { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--border);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 14px 24px; border-top: 1px solid var(--border); }
  .primary-nav .btn { margin: 14px 24px; }
  .nav-toggle { display: flex; }
  .hero__media { height: 56vh; }
  .article-grid, .uk-grid, .book-grid--4, .book-grid--3 { grid-template-columns: 1fr; }
  .newsletter-band__inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input[type=email] { flex: 1; min-width: 0; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .book-promo { flex-direction: column; align-items: flex-start; }
  .book-promo__cover { width: 110px; }
}
