/* ==========================================================================
   Grace Astro — shared stylesheet
   Palette: deep indigo night sky, warm brass gold, a wine accent pulled
   from Anna's own "Сочная атмосфера" line. Cards read like ephemeris
   tables, not SaaS panels: sharp corners, a hairline top rule, no drop
   shadows pretending to be paper.
   ========================================================================== */

:root {
  --bg-deep: #0b0a1c;
  --bg-panel: #15122c;
  --bg-panel-2: #1c1838;
  --gold: #c9a15f;
  --gold-light: #e7cd94;
  --wine: #8c3b52;
  --wine-light: #c96e86;
  --text-main: #f1ece1;
  --text-muted: #a89fc9;
  --line: rgba(201, 161, 95, 0.25);
  --line-strong: rgba(201, 161, 95, 0.5);
  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text-muted); margin: 0 0 1em; max-width: 60ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 3px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #241708;
  box-shadow: 0 10px 26px -10px rgba(201, 161, 95, 0.6);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-main);
}

.btn-outline:hover { border-color: var(--gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- icon sprite ---------- */

.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 30px;
  height: 30px;
  color: var(--gold);
  flex-shrink: 0;
}

.icon-sm { width: 20px; height: 20px; }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 10, 28, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--gold-light);
}

.logo span { color: var(--text-main); }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.15s ease;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.nav-links a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 42px;
  height: 38px;
  color: var(--gold-light);
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 600px; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 100px 0 76px;
  text-align: center;
  overflow: hidden;
}

.hero-nebula {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 0%, transparent 100%);
}

.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, var(--gold-light) 0%, transparent 60%),
    radial-gradient(1.2px 1.2px at 82% 28%, var(--gold-light) 0%, transparent 60%),
    radial-gradient(1.2px 1.2px at 64% 74%, var(--gold) 0%, transparent 60%),
    radial-gradient(1.6px 1.6px at 28% 82%, var(--gold-light) 0%, transparent 60%),
    radial-gradient(1px 1px at 92% 86%, var(--gold) 0%, transparent 60%),
    radial-gradient(1px 1px at 46% 12%, var(--gold) 0%, transparent 60%);
  opacity: 0.7;
}

.hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }

/* ---------- decorative astro graphics ---------- */

.bg-decor {
  position: absolute;
  color: var(--gold);
  pointer-events: none;
  z-index: 1;
}

.zodiac-wheel--hero {
  width: 640px;
  height: 640px;
  top: -220px;
  right: -260px;
  opacity: 0.22;
  animation: spin-slow 160s linear infinite;
}

.zodiac-wheel--hero.reverse {
  animation-direction: reverse;
  top: -240px;
  right: auto;
  left: -260px;
  opacity: 0.16;
}

@media (max-width: 780px) {
  .zodiac-wheel--hero { width: 420px; height: 420px; top: -140px; right: -200px; }
  .zodiac-wheel--hero.reverse { left: -200px; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .zodiac-wheel--hero, .zodiac-wheel--portrait { animation: none; }
}

.hero-symbol { color: var(--gold); margin: 0 auto 20px; width: 34px; height: 34px; }

.hero p.lead { font-size: 1.12rem; max-width: 560px; margin: 0 auto 2em; }

/* ---------- moon-phase divider ---------- */

.moon-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
  margin: 0 0 20px;
}

.moon-divider .icon { width: 15px; height: 15px; }
.moon-divider .icon:nth-child(2) { width: 20px; height: 20px; color: var(--gold-light); }

.moon-divider::before,
.moon-divider::after {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}

.moon-divider::after { background: linear-gradient(90deg, var(--line-strong), transparent); }

/* ---------- sections ---------- */

section { padding: 74px 0; position: relative; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 3px;
  padding: 32px 26px 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.card:hover { border-color: var(--gold-light); transform: translateY(-2px); }
a.card:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

.card .icon { margin-bottom: 16px; }

.card h3 { color: var(--gold-light); }

.card p { margin-bottom: 0; font-size: 0.95rem; }

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 3px;
  padding: 42px;
}

@media (max-width: 600px) {
  .panel { padding: 26px; }
}

/* ---------- article body ---------- */

.article-body p { max-width: none; font-size: 1.02rem; }

.article-body::after { content: ""; display: table; clear: both; }

.article-image { margin: 22px 0; }

.article-image img {
  width: 100%;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.article-image.align-center { max-width: 100%; }

.article-image.align-left {
  float: left;
  width: 45%;
  margin: 4px 22px 16px 0;
}

.article-image.align-right {
  float: right;
  width: 45%;
  margin: 4px 0 16px 22px;
}

@media (max-width: 640px) {
  .article-image.align-left, .article-image.align-right {
    float: none;
    width: 100%;
    margin: 22px 0;
  }
}

.article-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  margin-bottom: 22px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-video-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}

.article-video-link .icon { width: 18px; height: 18px; }

.article-body audio { width: 100%; margin-bottom: 22px; }

.related-links {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-links h3 {
  color: var(--gold-light);
  font-size: 1rem;
  margin-bottom: 12px;
}

.related-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.related-links a {
  color: var(--text-main);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.related-links a:hover { color: var(--gold-light); border-color: var(--gold); }

.article-note {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.article-note a {
  color: var(--text-main);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.article-note a:hover { color: var(--gold-light); border-color: var(--gold); }

/* ---------- lunar calendar ---------- */

.cal-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 36px;
}

.cal-switcher label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cal-switcher select {
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  color: var(--text-main);
  border-radius: 4px;
  padding: 9px 14px;
  font-size: 0.95rem;
  font-family: inherit;
}

.cal-switcher select:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

.cal-month-title {
  text-align: center;
  color: var(--gold-light);
  font-size: 1.3rem;
  margin-bottom: 26px;
}

.cal-month + .cal-month { margin-top: 46px; }

.cal-category { margin-bottom: 34px; }

.cal-category h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.cal-category h4 .icon { width: 20px; height: 20px; flex-shrink: 0; }

/* New/full moon dates - simple labeled rows, not a day grid (there's no
   such thing as a "favorable new moon day"). */
.cal-moon-dates {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}

.cal-moon-phase {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.cal-moon-phase .icon { width: 18px; height: 18px; color: var(--gold-light); }

/* Color-coded day grid - most-favorable/favorable/unfavorable, entered by
   Anna as three comma-separated day-number lists and rendered here as an
   actual month grid (matching the reference calendar she sent), kept in
   the site's own dark/gold/wine palette rather than the screenshot's
   literal cream styling. */
.cal-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 30px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cal-legend-item { display: flex; align-items: center; gap: 7px; }

.cal-swatch {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
}

.cal-swatch--most-fav { background: var(--gold); border-color: var(--gold); }
.cal-swatch--fav { background: rgba(201, 161, 95, 0.28); }
.cal-swatch--unfav { background: var(--wine); border-color: var(--wine); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  max-width: 460px;
  margin: 0 auto;
}

.cal-grid-wd {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cal-grid-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.cal-grid-day.cal-grid-blank { background: transparent; border-color: transparent; }

.cal-grid-day--most-fav { background: var(--gold); border-color: var(--gold); color: #241708; font-weight: 700; }
.cal-grid-day--fav { background: rgba(201, 161, 95, 0.22); border-color: var(--line-strong); }
.cal-grid-day--unfav { background: rgba(140, 59, 82, 0.4); border-color: var(--wine); color: var(--wine-light); }

.cal-recommendations { margin-top: 16px; max-width: 640px; margin-left: auto; margin-right: auto; }
.cal-recommendations p { margin-bottom: 10px; font-size: 0.95rem; }

/* ---------- eclipse corridors ---------- */

.eclipse-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--wine);
  border-radius: 3px;
  padding: 26px 28px;
  margin-bottom: 20px;
}

.eclipse-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.eclipse-range { color: var(--wine-light); font-weight: 600; margin-bottom: 12px; }

.eclipse-desc p { margin-bottom: 10px; font-size: 0.95rem; }

/* ---------- weekly forecast ---------- */

.cal-week-title {
  text-align: center;
  color: var(--gold-light);
  font-size: 1.15rem;
  margin-bottom: 22px;
}

.cal-week-text p { margin-bottom: 10px; font-size: 0.92rem; }

/* ---------- meditations ---------- */

.meditations-intro { max-width: 720px; margin-bottom: 12px; }
.meditations-intro p { margin-bottom: 10px; }

.meditations-list { max-width: 720px; }

.meditation-entry {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 3px;
  padding: 32px 34px;
  margin-bottom: 28px;
}

.meditation-entry h2 { color: var(--gold-light); margin-bottom: 16px; }

.meditation-entry audio { width: 100%; margin-bottom: 18px; }

.meditation-body p { margin-bottom: 12px; }

/* ---------- books ---------- */

.books-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.book-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}

.book-info { padding: 24px 26px 28px; }

.book-info h2 { font-size: 1.15rem; color: var(--gold-light); margin-bottom: 4px; }

.book-author { color: var(--text-muted); font-size: 0.85rem; font-style: italic; margin-bottom: 14px; }

.book-description p { margin-bottom: 10px; font-size: 0.92rem; }

/* ---------- price table ---------- */

.price-table { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-panel);
}

.price-row .name { font-family: var(--serif); font-size: 1.05rem; color: var(--text-main); }

.price-row .desc { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.price-row .amount {
  font-family: var(--serif);
  color: var(--gold-light);
  font-size: 1.1rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 28px auto 0;
}

/* ---------- reviews ---------- */

.review-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 28px;
  position: relative;
}

.review-card .stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 12px; }
.review-card .stars .icon { width: 15px; height: 15px; }

.review-card .name {
  display: block;
  margin-top: 16px;
  font-family: var(--serif);
  color: var(--gold-light);
  font-size: 0.95rem;
}

/* ---------- blog ---------- */

.blog-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.blog-card:has(a):hover { border-color: var(--gold); transform: translateY(-2px); }

.blog-card a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -2px; }

.blog-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.blog-card .body { padding: 24px; }

.blog-card .thumb {
  height: 128px;
  position: relative;
  background: linear-gradient(160deg, var(--bg-panel-2), var(--bg-deep));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.blog-card .thumb .icon { width: 36px; height: 36px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.85; }

.blog-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, var(--gold-light) 0, transparent 60%),
    radial-gradient(1px 1px at 75% 60%, var(--gold) 0, transparent 60%),
    radial-gradient(1px 1px at 50% 80%, var(--gold-light) 0, transparent 60%);
  opacity: 0.6;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-links { display: flex; flex-direction: column; gap: 12px; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.contact-link:hover { border-color: var(--gold); transform: translateX(4px); }
.contact-link:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

.contact-link .glyph {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(201, 161, 95, 0.12);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-link .glyph .icon { width: 19px; height: 19px; }

.contact-link .label { font-family: var(--serif); font-size: 1rem; color: var(--text-main); }

.contact-link .sub { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer .foot-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.site-footer a:hover { color: var(--gold-light); }
.site-footer a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

.foot-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-muted);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.foot-social .icon { width: 18px; height: 18px; }
.foot-social:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.foot-social:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* ---------- misc ---------- */

.placeholder-note {
  font-size: 0.78rem;
  color: var(--gold);
  border: 1px dashed var(--line-strong);
  border-radius: 3px;
  padding: 10px 14px;
  margin-top: 10px;
  display: inline-block;
}

.two-col {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
  align-items: center;
}

@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- portrait card (tarot-style frame) ---------- */

.portrait-wrap { position: relative; max-width: 340px; }

.zodiac-wheel--portrait {
  inset: -16%;
  width: auto;
  height: auto;
  opacity: 0.5;
  animation: spin-slow 180s linear infinite;
  z-index: 0;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 3/4;
  border: 1px solid var(--line-strong);
  outline: 1px solid var(--line);
  outline-offset: 6px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201, 161, 95, 0.14), transparent 60%),
    linear-gradient(175deg, var(--bg-panel-2), var(--bg-deep));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.portrait-frame .corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold);
}

.portrait-frame .corner.tl { top: -7px; left: -7px; border-width: 1px 0 0 1px; }
.portrait-frame .corner.tr { top: -7px; right: -7px; border-width: 1px 1px 0 0; }
.portrait-frame .corner.bl { bottom: -7px; left: -7px; border-width: 0 0 1px 1px; }
.portrait-frame .corner.br { bottom: -7px; right: -7px; border-width: 0 1px 1px 0; }

.portrait-frame .icon { width: 40px; height: 40px; margin-bottom: 14px; opacity: 0.8; }

.portrait-frame .plate {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 0.92rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

/* Once a real photo is uploaded via /admin/site-settings.php, it fills
   the frame edge-to-edge instead of the centered placeholder text. */
.portrait-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-frame .plate--overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 14px 12px 12px;
  border-top: none;
  background: linear-gradient(to top, rgba(11, 10, 28, 0.88), transparent);
}
