/* Antarctica Honeymoon - shared stylesheet */

:root {
  --color-bg: #ffffff;
  --color-text: #232a36;
  --color-header-footer: #1a2744;
  --color-header-footer-text: #f4f1ea;
  --color-accent: #c9a96e;
  --color-callout-bg: #faf6f0;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #8a6d3b;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-header-footer);
}

h1 {
  font-size: 2.4rem;
  margin: 0 0 0.6em;
}

h2 {
  font-size: 1.7rem;
  margin: 1.8em 0 0.6em;
  padding-top: 0.4em;
  border-top: 1px solid #eee2cf;
}

h3 {
  font-size: 1.25rem;
  margin: 1.4em 0 0.5em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.4em;
}

/* Header */
.site-header {
  background: var(--color-header-footer);
  color: var(--color-header-footer-text);
  padding: 1.1em 1.5em;
}

.site-header .header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6em;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-header-footer-text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-logo span {
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4em;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--color-header-footer-text);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
}

.site-nav a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.site-nav .nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav .nav-dropdown details {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav .nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--color-header-footer-text);
  font-size: 0.95rem;
  font-family: inherit;
  opacity: 0.9;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.site-nav .nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.site-nav .nav-dropdown summary::marker {
  content: "";
}

.site-nav .nav-dropdown summary:hover {
  color: var(--color-accent);
  opacity: 1;
}

.site-nav .nav-dropdown summary::after {
  content: "\25BE";
  font-size: 0.7em;
  opacity: 0.8;
}

.site-nav .nav-dropdown details[open] summary::after {
  content: "\25B4";
}

.site-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.7em;
  background: var(--color-header-footer);
  border: 1px solid rgba(244, 241, 234, 0.15);
  border-radius: 6px;
  min-width: 270px;
  padding: 0.5em 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  z-index: 30;
}

.site-nav .dropdown-menu a {
  padding: 0.55em 1.1em;
  font-size: 0.88rem;
  white-space: normal;
  color: var(--color-header-footer-text);
}

/* Hero (editorial article header) */
.hero {
  background: var(--color-bg);
  padding: 3.2em 1.5em 2em;
  text-align: center;
  border-bottom: 1px solid #eee2cf;
}

.hero .hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  color: var(--color-header-footer);
  font-size: 2.7rem;
  letter-spacing: -0.01em;
}

.hero .eyebrow {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1em;
}

.hero .meta-line {
  margin-top: 1em;
  font-size: 0.88rem;
  color: #6b7382;
  letter-spacing: 0.02em;
}

.hero .meta-line span {
  margin: 0 0.5em;
  color: var(--color-accent);
}

.breadcrumbs {
  max-width: var(--max-width);
  margin: 1em auto 0;
  padding: 0 1.5em;
  font-size: 0.85rem;
  color: #6b7382;
}

.breadcrumbs a {
  color: #6b7382;
}

/* Main content container */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.4em 1.5em 3em;
}

.page-intro {
  max-width: var(--max-width);
  margin: 2.4em auto 0;
  padding: 0 1.5em;
}

/* Callout */
.callout {
  background: var(--color-callout-bg);
  border-left: 4px solid var(--color-accent);
  padding: 1.2em 1.5em;
  margin: 1.6em 0 2em;
  border-radius: 0 6px 6px 0;
}

.callout h2, .callout h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.callout ul {
  margin-bottom: 0;
}

/* Figures / illustrations */
figure {
  margin: 1.6em 0;
}

figure.illustration {
  background: var(--color-callout-bg);
  border: 1px solid #eee2cf;
  border-radius: 8px;
  padding: 1.2em;
  text-align: center;
}

/* Real photography */
figure.photo {
  margin: 2.2em 0;
}

figure.photo img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 30px -14px rgba(26, 39, 68, 0.35);
}

figure.photo.lead {
  margin: 2em 0 2.4em;
}

figcaption {
  font-size: 0.85rem;
  color: #6b7382;
  margin-top: 0.7em;
  font-style: italic;
}

figcaption .credit {
  font-style: normal;
  opacity: 0.75;
}

/* Pull quote */
.pull-quote {
  margin: 2.2em 0;
  padding: 0.2em 0 0.2em 1.4em;
  border-left: 3px solid var(--color-accent);
}

.pull-quote p {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--color-header-footer);
  font-style: italic;
  margin: 0;
}

/* Comparison box (e.g. Legal vs Symbolic) */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #eee2cf;
  border: 1px solid #eee2cf;
  border-radius: 8px;
  margin: 1.8em 0 2em;
  overflow: hidden;
}

.comparison > div {
  background: var(--color-bg);
  padding: 1.3em 1.4em;
}

.comparison h4 {
  font-family: var(--font-heading);
  color: var(--color-header-footer);
  margin: 0 0 0.5em;
  font-size: 1.05rem;
}

.comparison p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--color-text);
}

.comparison .tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.6em;
}

/* Guide index (hub grid on home page) */
.guide-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
  margin: 1.6em 0 2em;
  padding: 0;
  list-style: none;
}

.guide-index li {
  margin: 0;
}

.guide-index a {
  display: block;
  height: 100%;
  background: var(--color-callout-bg);
  border: 1px solid #eee2cf;
  border-radius: 8px;
  padding: 1.1em 1.3em;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.15s ease;
}

.guide-index a:hover {
  border-color: var(--color-accent);
}

.guide-index .num {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.guide-index h3 {
  margin: 0.3em 0 0.3em;
  font-size: 1.05rem;
  color: var(--color-header-footer);
}

.guide-index p {
  margin: 0;
  font-size: 0.88rem;
  color: #6b7382;
}

/* Chapter prev/next pagination */
.page-pagination {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin: 2.6em 0 1em;
  padding-top: 1.6em;
  border-top: 1px solid #eee2cf;
}

.page-pagination a {
  flex: 1;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.4;
}

.page-pagination a:last-child {
  text-align: right;
}

.page-pagination .dir {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.3em;
}

.page-pagination .title {
  font-family: var(--font-heading);
  color: var(--color-header-footer);
  font-size: 1.05rem;
}

.page-pagination a:hover .title {
  color: var(--color-accent);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.4em 0 1.8em;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 0.95rem;
}

th, td {
  border: 1px solid #e6ddc9;
  padding: 0.7em 0.9em;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--color-header-footer);
  color: var(--color-header-footer-text);
  font-family: var(--font-heading);
  font-weight: 600;
}

tr:nth-child(even) td {
  background: #fdfbf7;
}

.footnote {
  font-size: 0.85rem;
  color: #6b7382;
  margin-top: -0.6em;
}

.price-note {
  font-size: 0.85rem;
  font-style: italic;
  color: #6b7382;
}

/* Footer */
.site-footer {
  background: var(--color-header-footer);
  color: var(--color-header-footer-text);
  padding: 2.2em 1.5em;
  margin-top: 3em;
}

.site-footer .footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5em;
}

.site-footer nav {
  display: flex;
  gap: 1.3em;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--color-header-footer-text);
  opacity: 0.85;
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.site-footer .copyright {
  font-size: 0.85rem;
  opacity: 0.7;
  width: 100%;
  margin-top: 1em;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  min-width: 170px;
}

.footer-col nav {
  flex-direction: column;
  gap: 0.5em;
}

.footer-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.55;
  margin-bottom: 0.3em;
}

/* Simple page (about/sources/privacy) */
.simple-page main h1 {
  color: var(--color-header-footer);
}

/* Chapter kicker (guide pages) */
main .kicker {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.6em;
}

/* Mobile */
@media (max-width: 768px) {
  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hero {
    padding: 2.2em 1.2em 1.8em;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .comparison {
    grid-template-columns: 1fr;
  }

  .guide-index {
    grid-template-columns: 1fr;
  }

  .page-pagination {
    flex-direction: column;
  }

  .page-pagination a:last-child {
    text-align: left;
  }

  .pull-quote p {
    font-size: 1.15rem;
  }

  main, .page-intro {
    padding-left: 1.2em;
    padding-right: 1.2em;
  }

  .site-header .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: #12161f;
    color: #dde1e8;
  }

  h1, h2, h3 {
    color: #f4f1ea;
  }

  h2 {
    border-top-color: #2a3550;
  }

  .hero {
    background: #12161f;
    border-bottom-color: #2a3550;
  }

  .hero h1 {
    color: #f4f1ea;
  }

  .callout {
    background: #1c2333;
  }

  figure.illustration {
    background: #1c2333;
    border-color: #2a3550;
  }

  figure.photo img {
    box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
  }

  .pull-quote p {
    color: #f4f1ea;
  }

  .comparison {
    background: #2a3550;
    border-color: #2a3550;
  }

  .comparison > div {
    background: #1c2333;
  }

  .comparison h4 {
    color: #f4f1ea;
  }

  .guide-index a {
    background: #1c2333;
    border-color: #2a3550;
  }

  .guide-index h3 {
    color: #f4f1ea;
  }

  .page-pagination {
    border-top-color: #2a3550;
  }

  .page-pagination .title {
    color: #f4f1ea;
  }

  th, td {
    border-color: #2a3550;
  }

  tr:nth-child(even) td {
    background: #171d2b;
  }

  a {
    color: var(--color-accent);
  }
}
