/* ----------------------------------------------------------
   Coda · Editorial pet profile
   ---------------------------------------------------------- */

/* Self-hosted Fraunces + Inter (latin + latin-ext subsets).
   Variable fonts — one file per style covers the weight range. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark light;

  /* Dark mode (default) */
  --bg: #17110c;

  --paper: #f3ebdd;
  --paper-2: #ede3d2;
  --ink: #1f1812;
  --ink-soft: #6b5a49;
  --ink-muted: #9b8b78;
  --line: rgba(31, 24, 18, 0.12);
  --line-soft: rgba(31, 24, 18, 0.07);
  --card-border: rgba(0, 0, 0, 0.25);

  --accent: #b7603a; /* terracotta */
  --accent-deep: #8f4628;
  --accent-soft: #e9c7b3;

  --radius: 22px;
  --shadow-lg:
    0 40px 80px -30px rgba(0, 0, 0, 0.55), 0 20px 40px -20px rgba(0, 0, 0, 0.4);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #e8dfcb;

    --paper: #faf3e3;
    --paper-2: #f1e8d3;
    --ink: #231a12;
    --ink-soft: #6b5a49;
    --ink-muted: #a3927d;
    --line: rgba(35, 26, 18, 0.12);
    --line-soft: rgba(35, 26, 18, 0.07);
    --card-border: rgba(35, 26, 18, 0.08);

    --shadow-lg:
      0 30px 60px -30px rgba(80, 55, 30, 0.35),
      0 12px 24px -16px rgba(80, 55, 30, 0.2);
  }
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  display: grid;
  place-items: start center;
  padding: 56px 20px;
}

/* ----------------------------------------------------------
   The card
   ---------------------------------------------------------- */
.card {
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  background: #241b13;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 14, 10, 0) 40%,
    rgba(20, 14, 10, 0.55) 75%,
    rgba(20, 14, 10, 0.88) 100%
  );
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  color: #fbf3e5;
  z-index: 2;
  display: grid;
  gap: 4px;
}

/* Language toggle — frosted pill on the hero */
.lang-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  appearance: none;
  min-width: 44px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 10, 6, 0.35);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  color: rgba(251, 243, 229, 0.95);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.1s ease;
}

.lang-toggle:hover {
  background: rgba(15, 10, 6, 0.55);
  border-color: rgba(255, 255, 255, 0.45);
}

.lang-toggle:active {
  transform: scale(0.96);
}

.lang-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251, 243, 229, 0.78);
  margin-bottom: 4px;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 11vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "opsz" 120;
}

.subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: rgba(251, 243, 229, 0.82);
  margin: 2px 0 0;
}

.hero-meta {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251, 243, 229, 0.7);
}

.hero-meta-sep {
  opacity: 0.5;
}

/* ----------------------------------------------------------
   Body
   ---------------------------------------------------------- */
.body {
  padding: 24px 28px 22px;
}

/* Actions */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  display: grid;
  justify-items: start;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-sans);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.btn-label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.btn-meta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.btn.primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow:
    0 10px 22px -12px rgba(31, 24, 18, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.btn.primary:hover {
  transform: translateY(-1px);
  background: #2a1f18;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover {
  background: var(--paper-2);
  border-color: rgba(31, 24, 18, 0.22);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------
   Panels
   ---------------------------------------------------------- */
.panel + .panel {
  margin-top: 18px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.panel-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.panel h2 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink);
  margin: 0;
}

/* Info grid */
.info {
  margin: 0;
  display: grid;
  gap: 2px;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.row:last-child {
  border-bottom: none;
}

.row dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}

.row dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  text-align: right;
  font-variation-settings: "opsz" 24;
}

/* Footer */
.foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 16px;
}

.foot-message {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink-soft);
  font-family: var(--font-display);
  text-align: center;
  text-wrap: balance;
}

.paw {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.paw svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  .page {
    padding: 40px 14px;
  }
  .body {
    padding: 22px 22px 20px;
  }
  .hero-caption {
    left: 22px;
    right: 22px;
    bottom: 20px;
  }
  .actions {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   LOST mode — shift the accent to red and warm the background
   ---------------------------------------------------------- */
.lost {
  --bg: #1a0f0d;
  --paper: #f7e9e1;
  --paper-2: #efd8cd;
  --accent: #b23a2a;
  --accent-deep: #7a2018;
  --accent-soft: #f5c9bc;
  --ink: #1a0c09;
}

@media (prefers-color-scheme: light) {
  .lost {
    --bg: #f0d8cf;
    --paper: #fcefe8;
  }
}

.lost .btn.primary {
  background: var(--accent);
  color: #fff7f1;
}
.lost .btn.primary:hover {
  background: var(--accent-deep);
}
