/* ---------------------------------------------------------------------
   Funaria — shared styles
   Palette drawn from the bot's portrait: near-black ground, cold slate
   panels, a single desaturated ice-blue accent used sparingly.
   Type: Cormorant Upright for display/headings, gg sans for everything
   else (falls back gracefully if the font isn't installed locally, since
   it isn't distributed on a public CDN).
--------------------------------------------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Upright:wght@400;500;600&display=swap");

:root {
  --ground: #0a0c10;
  --panel: #12151b;
  --panel-border: #232833;
  --ink: #d7dce3;
  --ink-dim: #8b93a1;
  --ice: #8fb2d1;
  --ice-dim: #5d7891;
  --serif: "Cormorant Upright", "Iowan Old Style", serif;
  --sans: "gg sans", "Noto Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(143, 178, 209, 0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 100%, rgba(143, 178, 209, 0.05), transparent 60%);
}

a {
  color: var(--ice);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--ice);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout shell */

.shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */

.nav {
  border-bottom: 1px solid var(--panel-border);
}

.nav-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.wordmark:hover {
  color: var(--ice);
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 0.9rem;
  color: var(--ink-dim);
}

.nav-links a {
  color: var(--ink-dim);
}

.nav-links a.current {
  color: var(--ink);
}

.nav-links a:hover {
  color: var(--ice);
}

/* Hero (home page) */

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero-portrait {
  width: 148px;
  height: 148px;
  margin: 0 auto 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 0 0 6px rgba(143, 178, 209, 0.05), 0 30px 60px -25px rgba(0, 0, 0, 0.8);
}

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

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 3.4rem;
  margin: 0 0 14px;
  color: var(--ink);
}

.hero p.tagline {
  font-size: 1.05rem;
  color: var(--ink-dim);
  max-width: 34ch;
  margin: 0 auto 40px;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 3px;
  font-size: 0.92rem;
  border: 1px solid var(--panel-border);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  color: var(--ground);
  background: var(--ice);
  border-color: var(--ice);
}

.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
}

.btn-secondary {
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ice);
  color: var(--ice);
}

/* Home content sections */

.section {
  padding: 0 0 64px;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--ink);
  margin: 0 0 12px;
}

.section p {
  color: var(--ink-dim);
  max-width: 58ch;
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--panel-border);
  margin: 0 0 64px;
}

/* Gallery grid (home page asset showcase) */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--panel-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Legal pages (terms / privacy) */

.legal {
  padding: 72px 0 96px;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--panel-border);
}

.legal-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.6rem;
  margin: 0 0 10px;
}

.legal-header .updated {
  color: var(--ink-dim);
  font-size: 0.88rem;
}

.legal section {
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0 0 12px;
}

.legal p,
.legal li {
  color: var(--ink-dim);
  max-width: 68ch;
}

.legal ul {
  padding-left: 1.2em;
  margin: 0;
}

.legal li + li {
  margin-top: 8px;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 28px 0;
}

.site-footer .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-dim);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--ink-dim);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.site-footer a:hover {
  color: var(--ice);
}

@media (max-width: 560px) {
  .hero {
    padding: 64px 0 56px;
  }

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

  .legal-header h1 {
    font-size: 2rem;
  }

  .nav-inner {
    padding: 18px 20px;
  }
}
