/* ============================================================
   PLAPA — Plato's Parmenides  |  site.css
   Design: black background, gold typography, Michroma headings
   Fully responsive: desktop ↔ tablet ↔ phone
   ============================================================ */

/* ── Design tokens ── */
:root {
  --black:       #000000;
  --near-black:  #0a0a08;
  --white:       #f5f0e8;
  --cream:       #e2d5bc;
  --muted:       #c0a87a;
  --gold:        #c8a84b;
  --gold-bright: #e2c56a;
  --gold-light:  #f0d98a;
  --gold-dim:    #7a6330;
  --line:        rgba(200, 168, 75, 0.30);

  --font-heading: "Cinzel",    "Trajan Pro", Georgia, serif;
  --font-sub:     "Michroma",  "Eurostile",  "Bank Gothic", "Rajdhani", sans-serif;
  --font-body:    "EB Garamond", "Garamond", Georgia, serif;
  --font-ui:      "Rajdhani",  "Trebuchet MS", Arial, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--black);
  color-scheme: dark;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

a   { color: inherit; }
em  { font-style: italic; }
i   { font-style: italic; }

strong,
b {
  color: var(--white);
  font-weight: 700;
}

strong em,
em strong,
b i,
i b {
  font-style: italic;
  font-weight: 700;
}

h1,
h2,
p,
a,
button {
  overflow-wrap: break-word;
}

h1,
h2 {
  text-wrap: balance;
}

.copy p,
.quote-item blockquote p {
  text-wrap: pretty;
}

button {
  font: inherit;
  cursor: pointer;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

/* ── Skip link ── */
.skip-link {
  position: fixed;
  left: 1rem;
  top:  1rem;
  z-index: 100;
  padding: 0.6rem 0.8rem;
  transform: translateY(-160%);
  background: var(--gold);
  color: #060402;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 700;
  transition: transform 200ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* ================================================================
   PAGES — common
   ================================================================ */
.page {
  display: none;
  min-height: 100svh;
  background: var(--black);
}
.page.is-active { display: block; }

/* ================================================================
   SPLASH SCREEN
   ================================================================ */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--black);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-globe {
  width: 140px;
  height: 140px;
  object-fit: contain;
  image-rendering: auto;
  filter: contrast(1.05) saturate(1.04) brightness(1.02);
}

/* ================================================================
   ENTRY PAGE
   ================================================================ */
.page-entry {
  position: relative;
  display: none;
  min-height: 100svh;
  justify-content: center;
  align-items: center;
}
.page-entry.is-active { display: flex; }

.entry-shell {
  width: 100%;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8vh 1.5rem 2vh;
}

@media (max-width: 1050px) {
  .entry-shell {
    justify-content: center;
    align-items: center;
    padding: 4rem 1.5rem 1.25rem;
  }
}

.entry-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(100%, 560px);
  gap: 0;
}

/* Entry heading block — left-aligned like the original */
.entry-heading {
  width: 100%;
  text-align: left;
  margin-bottom: 1.4rem;
}

.entry-heading h1 {
  margin: 0;
  color: var(--white);
  font-family: "Science Gothic", sans-serif;
  font-size: 3.05rem;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}

.entry-subtitle {
  margin: 0.9rem 0 0;
  color: var(--gold-bright);
  font-family: var(--font-sub);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.entry-credits {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.4;
}

/* Globe — crisp, sharp */
.entry-globe-wrap {
  width: min(292px, 46vw, 38svh);
  margin: 0.8rem auto 0.25rem;
}

.entry-globe-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Override only for Chromium where crisp-edges looks pixelated on photos */
  image-rendering: auto;
  filter: contrast(1.06) saturate(1.04) brightness(1.02);
}

/* Author name */
.entry-author {
  margin: 0 0 1.15rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
}

/* ENTER button */
.enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.6rem;
  border: 1px solid var(--gold-dim);
  border-radius: 0;
  background: transparent;
  color: var(--gold-bright);
  font-family: var(--font-sub);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
  cursor: pointer;
}

.enter-btn:hover,
.enter-btn:focus-visible {
  color: var(--white);
  border-color: var(--gold-bright);
  background: rgba(200, 168, 75, 0.08);
  outline: none;
}

.enter-bracket {
  color: var(--gold-dim);
  transition: color 200ms ease;
}

/* Pulse animation fires after the entry globe finishes spinning */
@keyframes enterPulse {
  0%   { box-shadow: 0 0 0   0   rgba(200, 168, 75, 0); border-color: var(--gold-dim); }
  40%  { box-shadow: 0 0 22px 6px rgba(200, 168, 75, 0.45); border-color: var(--gold-bright); }
  100% { box-shadow: 0 0 0   0   rgba(200, 168, 75, 0); border-color: var(--gold-dim); }
}

.enter-btn.enter-ready {
  animation: enterPulse 1.8s ease 0s 3;
}

.enter-btn:hover .enter-bracket,
.enter-btn:focus-visible .enter-bracket {
  color: var(--gold-bright);
}

/* ================================================================
   HOME PAGE
   ================================================================ */
.home-shell {
  position: relative;
  display: flex;
  min-height: 100svh;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 3rem 5.5rem 2rem;
  flex-direction: column;
}

/* Headings */
.book-heading {
  width: min(100%, 980px);
  margin-bottom: 0;
}

.home-h1 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}

.subtitle {
  margin: 1rem 0 0;
  color: var(--gold-bright);
  font-family: var(--font-sub);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.credits {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1.18rem;
  line-height: 1.4;
}

/* Two-column grid: globe | nav */
.home-grid {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.5fr);
  gap: 4rem;
  align-items: center;
  padding-top: 0.5rem;
}

/* Slide in from left animation */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.page-home.is-active .book-heading {
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-home.is-active .home-nav a {
  opacity: 0;
  animation: slideInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-home.is-active .home-nav a:nth-child(1) { animation-delay: 0.1s; }
.page-home.is-active .home-nav a:nth-child(2) { animation-delay: 0.25s; }
.page-home.is-active .home-nav a:nth-child(3) { animation-delay: 0.4s; }
.page-home.is-active .home-nav a:nth-child(4) { animation-delay: 0.55s; }


/* Globe panel */
.globe-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.globe-button {
  display: block;
  width: min(640px, 54vw, 70svh);
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.globe-button img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  image-rendering: auto;
  filter: contrast(1.06) saturate(1.04) brightness(1.02);
  transition: filter 300ms ease;
}

.globe-button:hover img {
  filter: contrast(1.08) saturate(1.08) brightness(1.05);
}

/* Author name overlaps globe bottom */
.author-name {
  position: relative;
  z-index: 2;
  margin: -3.5rem 0 0;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.9);
  text-transform: uppercase;
}

/* Spin button */
.spin-control {
  position: relative;
  z-index: 2;
  min-height: 36px;
  margin-top: 0.5rem;
  padding: 0.2rem 1rem;
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  font-family: var(--font-sub);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease;
}

.spin-control:hover,
.spin-control[aria-pressed="true"] {
  color: var(--white);
}

/* Navigation links */
.home-nav {
  display: grid;
  gap: 2.4rem;
  align-self: center;
  padding: 3.5rem 0 3.5rem 3.5rem;
  border-left: 1px solid var(--line);
}

.home-nav a {
  display: block;
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.25;
  text-decoration: none;
  transition: color 180ms ease;
}

.home-nav a em {
  font-style: italic;
}

.home-nav a:hover {
  color: var(--gold-light);
}

/* Cart / email icons */
.home-actions {
  position: absolute;
  right: 5rem;
  bottom: 2.2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.home-actions a {
  display: grid;
  width: 48px;
  height: 44px;
  place-items: center;
  opacity: 0.85;
  transition: opacity 180ms ease;
}

.home-actions a:hover { opacity: 1; }

.home-actions img {
  display: block;
  max-width: 38px;
  max-height: 32px;
  filter: invert(1) brightness(1.4) sepia(0.3) hue-rotate(5deg) saturate(1.6);
}

/* Focus styles */
.globe-button:focus-visible,
.spin-control:focus-visible,
.enter-btn:focus-visible,
.home-nav a:focus-visible,
.home-actions a:focus-visible,
.return-home:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 5px;
}

/* ================================================================
   CONTENT PAGES — shared
   ================================================================ */
.page-content { position: relative; }

.content-shell {
  width: min(100% - 6rem, 980px);
  margin: 0 auto;
  padding: 5rem 0 10rem;
}

.content-shell-narrow {
  width: min(100% - 6rem, 860px);
}

.content-shell-wide {
  width: min(100% - 6rem, 1100px);
}

/* Bottom logo strip (inside article, visible via flex-direction column-reverse trick) */
.content-footer-logo {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.footer-globe {
  width: 70px;
  height: 70px;
  object-fit: contain;
  flex-shrink: 0;
  filter: contrast(1.05) saturate(1.02);
  image-rendering: auto;
}

.footer-book-title {
  margin: 0;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-book-sub {
  margin: 0.18rem 0 0;
  color: var(--gold);
  font-family: var(--font-sub);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Kicker label above h2 */
.kicker {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-family: var(--font-sub);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Section heading */
h2 {
  margin: 0 0 2.2rem;
  color: var(--gold-bright);
  font-family: var(--font-heading);
  font-size: 2.45rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.page-content h2 {
  font-family: var(--font-body);
}

/* Body copy */
.copy {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.24rem;
  line-height: 1.7;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
}

.copy p {
  margin: 0 0 1.5rem;
}

.copy p:last-child {
  margin-bottom: 0;
}

/* Blockquote */
.copy blockquote,
.quotes-list blockquote {
  margin: 0;
}

.copy blockquote {
  margin-bottom: 2.2rem;
  padding: 1.2rem 0 1.2rem 1.4rem;
  border-left: 2px solid var(--gold-dim);
  color: var(--gold-bright);
}

.copy blockquote p {
  margin-bottom: 0.9rem;
}

.copy blockquote footer {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.4;
}

/* Source / attribution lines */
.source {
  padding-top: 0.8rem;
  color: var(--muted);
  font-size: 1rem;
}

.attribution {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.45;
}

/* ================================================================
   PHILOSOPHERS — quotes grid
   ================================================================ */
.quotes-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.quote-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 2.5rem;
  margin: 0;
  padding: 2.8rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.quote-item img {
  width: 180px;
  height: 218px;
  object-fit: cover;
  border: 1px solid rgba(200, 168, 75, 0.28);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.38);
  background: #120c05;
}

.quote-item figcaption {
  position: relative;
  padding: 1.75rem 2.4rem 1.7rem;
  border: 1px solid rgba(200, 168, 75, 0.18);
  background:
    linear-gradient(180deg, rgba(20, 14, 8, 0.92) 0%, rgba(9, 6, 3, 0.78) 100%);
}

.quote-item figcaption::before,
.quote-item figcaption::after {
  content: "";
  position: absolute;
  width: 82px;
  height: 68px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.24;
  pointer-events: none;
}

.quote-item figcaption::before {
  top: 0.9rem;
  left: 0.85rem;
  background-image: url("arts/quotes-start.png");
}

.quote-item figcaption::after {
  right: 0.85rem;
  bottom: 0.9rem;
  background-image: url("arts/quotes-end.png");
}

.quote-item blockquote {
  position: relative;
  z-index: 1;
  padding-top: 0.55rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.18rem;
  line-height: 1.68;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
}

.quote-item blockquote p {
  margin: 0 0 1.1rem;
}

.quote-item blockquote p:last-child {
  margin-bottom: 0;
}

.quote-item .attribution {
  position: relative;
  z-index: 1;
  max-width: 24rem;
  margin: 1.5rem 0 0 auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(200, 168, 75, 0.18);
  text-align: right;
}

/* ================================================================
   RETURN-HOME BUTTON — always fixed, hidden only on entry + home
   ================================================================ */
.return-home {
  position: fixed;
  right: 1.5rem;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
  z-index: 50;
  display: grid;
  place-items: center;
  width: 88px;
  min-height: 72px;
  padding: 0.5rem;
  background: transparent;
  text-decoration: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.return-home-icon {
  display: block;
  width: min(74px, 100%);
  height: auto;
  transform: rotate(180deg);
  transform-origin: center;
  filter: drop-shadow(0 0 12px rgba(200, 168, 75, 0.22));
  transition: transform 220ms ease, filter 220ms ease, opacity 220ms ease;
}

.return-home:hover {
  transform: translateY(-2px);
}

.return-home:hover .return-home-icon {
  filter: drop-shadow(0 0 14px rgba(240, 217, 138, 0.4)) brightness(1.06);
}

/* Hide on entry page and home page */
body[data-view="entry"] .return-home,
body[data-view="home"]  .return-home {
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
}

/* ================================================================
   LARGE SCREENS  (≥ 1500px)
   ================================================================ */
@media (min-width: 1500px) {
  .home-shell {
    padding: 3.5rem 7rem 2.5rem;
  }

  .home-h1 {
    font-size: 4rem;
  }

  .home-nav {
    gap: 2.8rem;
  }

  .home-nav a {
    font-size: 1.9rem;
  }

  .globe-button {
    width: min(700px, 52vw, 72svh);
  }
}

/* ================================================================
   MEDIUM / TABLET  (≤ 1050px)
   ================================================================ */
@media (max-width: 1050px) {
  .home-shell {
    padding: 2.5rem 2.5rem 5rem;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-content: start;
    padding-top: 0.5rem;
  }

  .home-h1 {
    font-size: 2.7rem;
  }

  .subtitle {
    font-size: 0.82rem;
  }

  .credits {
    font-size: 1.08rem;
  }

  .globe-button {
    width: min(480px, 72vw, 52svh);
  }

  .home-nav {
    width: min(100%, 680px);
    margin: 0 auto;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    gap: 0;
  }

  .home-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(200, 168, 75, 0.15);
    font-size: 1.32rem;
  }

  .home-actions {
    right: 2.5rem;
    bottom: 1.5rem;
  }

  .content-shell,
  .content-shell-narrow,
  .content-shell-wide {
    padding-right: 0;
  }
}

/* ================================================================
   PHONE  (≤ 680px)
   ================================================================ */
@media (max-width: 680px) {
  /* Entry */
  .entry-shell {
    align-items: center;
    min-height: 100dvh;
    padding: 1.15rem 1.1rem max(1rem, env(safe-area-inset-bottom, 1rem));
  }

  .entry-content {
    justify-content: center;
    gap: 0;
    width: 100%;
    min-height: calc(100dvh - 2.25rem);
  }

  .entry-heading { margin-bottom: 0.65rem; }

  .entry-heading h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .entry-subtitle  {
    margin-top: 0.55rem;
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .entry-credits   {
    margin-top: 0.55rem;
    font-size: 0.9rem;
    line-height: 1.32;
  }

  .entry-globe-wrap {
    width: min(64vw, 280px, 32svh);
    margin: 0.8rem auto 0;
  }

  .entry-author {
    margin-bottom: 0.8rem;
    font-size: 0.96rem;
  }

  .enter-btn {
    min-height: 42px;
    padding: 0.45rem 1.15rem;
    font-size: 0.8rem;
  }

  /* Home */
  .home-shell {
    min-height: 100dvh;
    padding: 1.2rem 1.1rem max(1rem, env(safe-area-inset-bottom, 1rem));
    gap: 0.55rem;
  }

  .book-heading { width: 100%; }

  .home-h1 {
    font-size: 1.95rem;
    line-height: 1.1;
  }

  .subtitle {
    margin-top: 0.55rem;
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .credits {
    margin-top: 0.55rem;
    font-size: 0.95rem;
    line-height: 1.32;
  }

  .home-grid {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    gap: 0.55rem;
    padding-top: 0.25rem;
  }

  .globe-panel {
    align-items: center;
  }

  .globe-button {
    width: min(74vw, 292px, 34svh);
  }

  .author-name {
    margin-top: -1.25rem;
    font-size: 0.95rem;
  }

  .spin-control {
    min-height: 32px;
    margin-top: 0.15rem;
    padding: 0.1rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Nav moves to BOTTOM on phone */
  .home-nav {
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.75rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    gap: 0;
  }

  .home-nav a {
    padding: 0.62rem 0;
    font-size: 1.08rem;
    line-height: 1.22;
    border-bottom: 1px solid rgba(200, 168, 75, 0.15);
  }

  .home-actions {
    position: static;
    justify-content: center;
    margin-top: 0.45rem;
    gap: 1.5rem;
  }

  .home-actions a {
    width: 44px;
    height: 40px;
  }

  /* Content pages */
  .content-shell,
  .content-shell-narrow,
  .content-shell-wide {
    width: 100%;
    padding: 2.25rem 1.25rem 7rem;
  }

  .content-footer-logo {
    margin-bottom: 2rem;
    padding-right: 4.25rem;
  }

  .footer-globe {
    width: 52px;
    height: 52px;
  }

  h2 {
    font-size: 1.78rem;
    margin-bottom: 1.6rem;
  }

  .copy {
    font-size: 1.08rem;
    line-height: 1.65;
  }

  .copy blockquote {
    padding-left: 1rem;
  }

  /* Philosophers — stack on phone */
  .quote-item {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.8rem 0;
  }

  .quote-item img {
    width: 90px;
    height: 110px;
  }

  .quote-item figcaption {
    padding: 1.2rem 1.1rem 1.2rem;
  }

  .quote-item figcaption::before,
  .quote-item figcaption::after {
    width: 48px;
    height: 40px;
    opacity: 0.2;
  }

  .quote-item figcaption::before {
    top: 0.55rem;
    left: 0.55rem;
  }

  .quote-item figcaption::after {
    right: 0.55rem;
    bottom: 0.55rem;
  }

  .quote-item blockquote {
    font-size: 1.02rem;
  }

  .quote-item .attribution {
    font-size: 0.98rem;
    max-width: none;
  }

  /* Return home – smaller on phone */
  .return-home {
    top: max(0.75rem, env(safe-area-inset-top, 0.75rem));
    right: 0.75rem;
    bottom: auto;
    width: 52px;
    min-height: 52px;
    padding: 0.2rem;
  }

  .return-home-icon {
    width: 42px;
  }
}

/* ================================================================
   TINY PHONE  (≤ 390px)
   ================================================================ */
@media (max-width: 390px) {
  .entry-heading h1 { font-size: 1.78rem; }

  .home-h1 { font-size: 1.62rem; }

  .globe-button {
    width: min(72vw, 270px, 32svh);
  }

  .home-nav a { font-size: 1rem; }

  h2 { font-size: 1.35rem; }

  .copy { font-size: 1rem; }
}

@media (max-width: 680px) and (max-height: 720px) {
  .home-shell {
    padding-top: 0.9rem;
  }

  .home-h1 {
    font-size: 1.58rem;
  }

  .subtitle {
    margin-top: 0.4rem;
    font-size: 0.62rem;
  }

  .credits {
    margin-top: 0.4rem;
    font-size: 0.86rem;
  }

  .globe-button {
    width: min(68vw, 240px, 30svh);
  }

  .author-name {
    margin-top: -1rem;
    font-size: 0.86rem;
  }

  .home-nav {
    padding-top: 0.55rem;
  }

  .home-nav a {
    padding: 0.48rem 0;
    font-size: 0.96rem;
  }

  .home-actions {
    margin-top: 0.3rem;
  }
}
