/**
 * Leela Interior — global typography, layout, utilities, shared components.
 */

:root {
  --leela-gold: #c9a962;
  --leela-beige: #f5f0e8;
  --leela-dark: #1a1a1a;
  --leela-white: #faf9f7;
  --leela-gray: #6b6b6b;
  --leela-border: rgba(26, 26, 26, 0.08);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Luxury two-row header (all pages) */
  --header-h: 116px;
}

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

html {
  scroll-behavior: smooth;
}

body.nav-is-open {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--leela-dark);
  background: var(--leela-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--leela-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    color 0.2s var(--ease-out),
    opacity 0.2s;
}

a:hover {
  color: var(--leela-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.narrow {
  max-width: 720px;
}

.section-pad {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section-beige {
  background: var(--leela-beige);
}

.section-dark {
  background: var(--leela-dark);
  color: var(--leela-white);
}

.section-dark a {
  color: var(--leela-gold);
}

.section-dark a:hover {
  color: #e8d5a3;
}

.center {
  text-align: center;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  overflow-wrap: normal !important;
}

.skip-link:focus {
  clip: auto !important;
  clip-path: none;
  height: auto;
  left: 1rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
  padding: 0.75rem 1rem;
  background: var(--leela-dark);
  color: var(--leela-white);
  text-decoration: none;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leela-gold);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.section-label.light {
  color: #e8d5a3;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1rem;
}

.section-title.light {
  color: var(--leela-white);
}

.section-header {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-header.center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-cta-row {
  margin-top: 2.5rem;
  text-align: center;
}

.light-muted {
  color: rgba(250, 249, 247, 0.75);
  margin-bottom: 0.5rem;
}

.two-col {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.text-link {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--leela-gold);
  color: var(--leela-dark);
  padding-bottom: 2px;
}

.text-link:hover {
  border-bottom-color: var(--leela-dark);
  color: var(--leela-gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.25s var(--ease-out),
    color 0.25s,
    border-color 0.25s,
    transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--leela-gold);
  color: var(--leela-dark);
  border-color: var(--leela-gold);
}

.btn-primary:hover {
  background: #ddb76d;
  border-color: #ddb76d;
  color: var(--leela-dark);
}

.btn-outline {
  background: transparent;
  color: var(--leela-dark);
  border-color: var(--leela-dark);
}

.btn-outline:hover {
  background: var(--leela-dark);
  color: var(--leela-white);
  border-color: var(--leela-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--leela-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: var(--leela-white);
  color: var(--leela-dark);
  border-color: var(--leela-white);
}

.btn-ghost-light {
  background: transparent;
  color: var(--leela-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost-light:hover {
  background: var(--leela-white);
  color: var(--leela-dark);
  border-color: var(--leela-white);
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Blog & archive (index / home blog) */
.page-header .page-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
}

.page-intro {
  color: var(--leela-gray);
  font-size: 1.125rem;
  max-width: 480px;
}

.archive-loop,
.blog-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 700px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.archive-card,
.blog-card {
  border-bottom: 1px solid var(--leela-border);
  padding-bottom: 2rem;
}

.blog-card-image,
.archive-card-image {
  margin-bottom: 1rem;
  overflow: hidden;
  display: block;
}

.blog-card-image img,
.archive-card-image img {
  transition: transform 0.6s var(--ease-out);
}

.blog-card:hover .blog-card-image img,
.archive-card:hover .archive-card-image img {
  transform: scale(1.03);
}

.archive-card-title,
.blog-card-title {
  font-size: 1.75rem;
}

.blog-card-title a,
.archive-card-title a {
  text-decoration: none;
  color: var(--leela-dark);
}

.blog-card-title a:hover,
.archive-card-title a:hover {
  color: var(--leela-gold);
}

.blog-card-date {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leela-gray);
  display: block;
  margin-bottom: 0.5rem;
}

.blog-card-body .text-link,
.archive-card .text-link {
  text-transform: none;
  font-size: 0.9375rem;
  letter-spacing: 0;
}

/* Single post */
.single-hero .page-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
}

.single-date {
  font-size: 0.875rem;
  color: var(--leela-gray);
}

.single-featured {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 2px;
}

.single-featured img {
  width: 100%;
}

.single-content {
  font-size: 1.125rem;
}

.single-content > *:first-child {
  margin-top: 0;
}

.page-content {
  font-size: 1.0625rem;
}

.page-content > *:first-child {
  margin-top: 0;
}

/* Custom logo size */
.custom-logo-link img {
  max-height: 52px;
  width: auto;
}
