/* Gren for gren – summer tree-climbing challenge */

:root {
  --green-950: #0c2818;
  --green-900: #143d26;
  --green-800: #1a5c3a;
  --green-700: #217a4b;
  --green-600: #2a9d5c;
  --green-100: #e8f5ec;
  --green-50: #f3faf5;
  --sun-400: #f0c14a;
  --sun-300: #f7d87a;
  --cream: #faf7f0;
  --ink: #1a1f1c;
  --ink-muted: #4a554e;
  --white: #ffffff;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow: 0 12px 40px rgba(12, 40, 24, 0.12);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --space: clamp(1.25rem, 4vw, 2rem);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-800);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--green-600);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-950);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  letter-spacing: -0.02em;
}

h1 em {
  font-style: italic;
  color: var(--green-700);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4em;
}

p {
  margin: 0 0 1em;
}

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

.container {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-900);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: var(--space);
  top: var(--space);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 92, 58, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--green-950);
  text-decoration: none;
}

.logo:hover {
  color: var(--green-800);
}

.logo-img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-mark {
  font-size: 1.35rem;
  line-height: 1;
}

.hero-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 92, 58, 0.08);
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
}

.hero-content {
  max-width: none;
}

.hero-copy {
  max-width: 40rem;
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--green-800);
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}

.btn-primary:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--green-900);
  border-color: rgba(26, 92, 58, 0.35);
}

.btn-ghost:hover {
  border-color: var(--green-800);
  background: rgba(255, 255, 255, 0.5);
  color: var(--green-900);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}

.btn-small:hover {
  background: var(--green-700);
  color: var(--white);
}

/* Map */

.section-map {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.map-shell {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .map-shell {
    grid-template-columns: 1fr 14rem;
    align-items: stretch;
  }
}

.oslo-map {
  width: 100%;
  height: min(62vh, 32rem);
  min-height: 20rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 92, 58, 0.12);
  box-shadow: var(--shadow);
  background: var(--green-100);
  z-index: 0;
}

.tree-marker {
  background: transparent !important;
  border: none !important;
}

.tree-marker-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.65rem;
  line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(12, 40, 24, 0.35));
  transition: transform 0.15s ease;
}

.tree-marker:hover .tree-marker-inner,
.leaflet-marker-icon:hover .tree-marker-inner {
  transform: scale(1.12);
}

.map-popup {
  font-family: var(--font-sans);
  min-width: 10rem;
}

.map-popup strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--green-900);
  margin-bottom: 0.35rem;
}

.map-popup p {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.map-popup-note {
  font-size: 0.8rem !important;
  color: var(--green-700) !important;
  font-weight: 600;
}

.leaflet-popup-content-wrapper {
  border-radius: 0.85rem;
  box-shadow: 0 10px 28px rgba(12, 40, 24, 0.18);
  border: 1px solid rgba(26, 92, 58, 0.08);
}

.leaflet-popup-tip {
  box-shadow: none;
}

.leaflet-container a.leaflet-popup-close-button {
  color: var(--green-800);
}

.map-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 900px) {
  .map-legend {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.4rem;
  }
}

.map-legend-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(26, 92, 58, 0.12);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-900);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.map-legend-btn:hover {
  background: var(--green-50);
  border-color: var(--green-600);
  transform: translateY(-1px);
}

.map-legend-btn:focus-visible {
  outline: 3px solid var(--sun-400);
  outline-offset: 2px;
}

.map-legend-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.map-popup-meta {
  font-size: 0.8rem !important;
  color: var(--ink-muted) !important;
  margin-bottom: 0.65rem !important;
}

.map-popup-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green-800);
  text-decoration: none;
}

.map-popup-link:hover {
  color: var(--green-600);
  text-decoration: underline;
}

.map-error {
  padding: 2rem;
  text-align: center;
  color: var(--ink-muted);
}

/* Tree cards on homepage */

.tree-cards {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

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

@media (min-width: 960px) {
  .tree-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tree-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(26, 92, 58, 0.1);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.tree-card:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 92, 58, 0.28);
  color: inherit;
}

.tree-card-img-wrap {
  aspect-ratio: 4 / 3;
  background: var(--green-100);
  overflow: hidden;
}

.tree-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tree-card-body {
  padding: 1.1rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.tree-card-body h3 {
  margin: 0;
  font-size: 1.15rem;
}

.tree-card-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  flex: 1;
}

.tree-card-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-700);
  margin-top: 0.35rem;
}

/* Tree detail page */

.tree-page {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 8vw, 5rem);
}

.tree-loading,
.tree-error {
  padding: 3rem 0;
  color: var(--ink-muted);
}

.tree-error a {
  font-weight: 600;
}

.tree-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.tree-breadcrumb a {
  color: var(--green-800);
  text-decoration: none;
  font-weight: 500;
}

.tree-breadcrumb a:hover {
  text-decoration: underline;
}

.tree-hero {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 860px) {
  .tree-hero {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 2.5rem;
  }
}

.tree-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(26, 92, 58, 0.1);
  box-shadow: var(--shadow);
  background: var(--green-100);
  aspect-ratio: 4 / 3;
}

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

.tree-summary {
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.tree-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(26, 92, 58, 0.12);
}

.tree-meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}

.tree-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--green-900);
  font-size: 1.05rem;
}

.tree-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tree-share-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-700);
}

.tree-body-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 900px) {
  .tree-body-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.tree-prose h2 {
  font-size: 1.35rem;
  margin-top: 1.5rem;
}

.tree-prose h2:first-child {
  margin-top: 0;
}

.tree-prose p {
  color: var(--ink-muted);
}

.tree-tips {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.tree-tips li {
  position: relative;
  padding: 0.75rem 0.9rem 0.75rem 2.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(26, 92, 58, 0.1);
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.tree-tips li::before {
  content: "✓";
  position: absolute;
  left: 0.85rem;
  color: var(--green-700);
  font-weight: 700;
}

.tree-qr-note {
  font-size: 0.9rem;
  padding: 1rem 1.15rem;
  background: var(--green-50);
  border-radius: var(--radius);
  color: var(--ink-muted);
  border-left: 4px solid var(--green-600);
}

.tree-map-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid rgba(26, 92, 58, 0.1);
  box-shadow: var(--shadow);
  position: sticky;
  top: 5rem;
}

.tree-map-heading {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.tree-detail-map {
  width: 100%;
  height: 16rem;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 92, 58, 0.1);
  z-index: 0;
}

.tree-coords {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.tree-permalink-wrap {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 92, 58, 0.1);
}

.tree-permalink-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

.tree-permalink {
  display: block;
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--green-800);
  background: var(--green-50);
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
}

.tree-others h2 {
  margin-bottom: 1rem;
}

.tree-others-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

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

.tree-other-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(26, 92, 58, 0.1);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tree-other-card:hover {
  border-color: var(--green-600);
  transform: translateY(-1px);
  color: inherit;
}

.tree-other-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.tree-other-card strong {
  display: block;
  font-family: var(--font-display);
  color: var(--green-950);
  margin-bottom: 0.2rem;
}

.tree-other-sum {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 10%, rgba(240, 193, 74, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(42, 157, 92, 0.18), transparent 50%),
    linear-gradient(165deg, var(--green-50) 0%, var(--cream) 45%, #eef6e8 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4rem;
  background: linear-gradient(to top, var(--cream), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  color: var(--ink-muted);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.hero-lead strong {
  color: var(--green-900);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(26, 92, 58, 0.15);
  max-width: 28rem;
}

.hero-stats dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-900);
}

/* Sections */

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-header {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-header .eyebrow {
  margin-bottom: 0.5rem;
}

.section-lead {
  color: var(--ink-muted);
  font-size: 1.1rem;
  margin: 0;
}

.section-soft {
  background: var(--green-50);
}

.section-accent {
  background: var(--green-900);
  color: var(--green-100);
}

.section-accent h2,
.section-accent .eyebrow {
  color: var(--sun-300);
}

.section-accent .eyebrow {
  color: var(--sun-400);
}

.section-accent p {
  color: rgba(232, 245, 236, 0.9);
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: none;
}

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

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

.step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 92, 58, 0.06);
  height: 100%;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.step p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* Prize */

.prize {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .prize {
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
  }
}

.prize-card {
  background: linear-gradient(145deg, var(--green-800), var(--green-950));
  border: 1px solid rgba(240, 193, 74, 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.prize-card .eyebrow {
  color: var(--sun-400);
}

.prize-amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin: 0.25rem 0 1rem;
  letter-spacing: -0.03em;
}

.prize-amount span {
  font-size: 0.45em;
  font-weight: 600;
  opacity: 0.85;
}

.prize-text {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.25rem;
}

.prize-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.prize-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--sun-300);
  font-weight: 500;
  font-size: 0.95rem;
}

.prize-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sun-400);
  font-weight: 700;
}

.prize-aside h2 {
  color: var(--white);
}

/* Rules */

.rules-grid {
  display: grid;
  gap: 1.25rem;
}

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

.rule {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(26, 92, 58, 0.1);
}

.rule p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* Safety */

.safety-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

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

.safety-list li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--green-600);
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.safety-list strong {
  display: block;
  color: var(--green-950);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.disclaimer {
  font-size: 0.875rem;
  color: var(--ink-muted);
  max-width: 48rem;
  padding: 1rem 1.25rem;
  background: rgba(26, 92, 58, 0.06);
  border-radius: var(--radius);
}

/* CTA */

.cta-section {
  padding-top: 0;
}

.cta-box {
  text-align: center;
  background: linear-gradient(135deg, var(--green-100), #dff0e4);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem) var(--space);
  border: 1px solid rgba(26, 92, 58, 0.1);
}

.cta-box p {
  color: var(--ink-muted);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

/* Footer */

.site-footer {
  padding: 2.75rem 0 3.25rem;
  border-top: 1px solid rgba(26, 92, 58, 0.1);
  background: var(--green-950);
  color: rgba(232, 245, 236, 0.75);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr minmax(16rem, 22rem);
    gap: 3rem;
  }
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  font-size: 1.15rem;
}

.footer-logo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-meta,
.footer-copy {
  margin: 0;
  font-size: 0.875rem;
}

.footer-copy {
  opacity: 0.7;
}

/* Instagram widget */

.ig-widget {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.ig-heading {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sun-400);
}

.ig-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.ig-card:hover {
  color: var(--white);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.ig-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.ig-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.ig-handle {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.ig-cta {
  font-size: 0.85rem;
  opacity: 0.92;
  line-height: 1.35;
}

.ig-arrow {
  font-size: 1.25rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.ig-note {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(232, 245, 236, 0.7);
}

.ig-note a {
  color: var(--sun-300);
  font-weight: 600;
}

.ig-note a:hover {
  color: var(--sun-400);
}

/* Focus */

:focus-visible {
  outline: 3px solid var(--sun-400);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
