/* ==========================================================================
   Pet Travel Blog
   1. Fonts  2. Tokens  3. Base  4. Layout  5. Components  6. Sections
   7. WordPress and inner pages
   ========================================================================== */

/* 1. Fonts
   ========================================================================== */
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens
   ========================================================================== */
:root {
  --color-bg: #faf4ea;
  --color-surface: #ffffff;
  --color-sand: #f1e5d3;
  --color-line: #e8dccb;
  --color-brown: #5a3a26;
  --color-brown-dark: #3a2317;
  --color-ink: #2b1d14;
  --color-muted: #6f6257;
  --color-accent: #dd6b2a;
  --color-accent-dark: #c2581d;
  --color-accent-soft: #fbe6d2;
  --color-sage: #47693f;
  --color-sage-soft: #e4eddc;
  --color-note: #fff8e8;
  --color-note-line: #f3e2b5;

  --font-heading: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-card: 0 18px 44px rgba(90, 58, 38, 0.1);
  --container: 1200px;
  --gutter: 18px;
}

/* 3. Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.375rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  height: auto;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

fieldset {
  margin: 0;
  min-width: 0;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: 90px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--solid {
  fill: currentColor;
  stroke: none;
}

/* 4. Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 44px;
}

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

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

.section--white {
  background: var(--color-surface);
  border-block: 1px solid var(--color-line);
}

.section--white + .section {
  padding-top: 44px;
}

.section__header {
  margin-bottom: 26px;
}

.section__header--center {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section__header--split {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section__lead {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 1.0625rem;
}

.section__more {
  margin-top: 26px;
  text-align: center;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid--stretch {
  align-items: stretch;
}

/* 5. Components
   ========================================================================== */
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-sage-soft);
  color: var(--color-sage);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow--accent {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

.eyebrow--light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

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

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-dark);
}

.btn--outline {
  border-color: var(--color-brown);
  color: var(--color-brown);
}

.btn--outline:hover {
  background: var(--color-brown);
  color: #fff;
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--outline-light:hover {
  background: #fff;
  color: var(--color-brown);
}

.btn--small {
  padding: 10px 18px;
  font-size: 0.9375rem;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-sage);
  font-weight: 600;
}

.link-arrow .icon {
  transition: transform 0.2s;
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

.chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-block;
  padding: 9px 18px;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.chip:hover {
  border-color: var(--color-brown);
}

.chip.is-active {
  border-color: var(--color-brown);
  background: var(--color-brown);
  color: #fff;
}

.chip-row--light {
  flex-wrap: wrap;
  margin-top: 26px;
}

.chip-row--light .chip {
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
}

.chip-row--light .chip:hover {
  border-color: #fff;
}

.field label,
.field-group legend {
  display: block;
}

.field label {
  margin-bottom: 6px;
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field__hint {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.8;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  font-weight: 600;
}

.field select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f6257' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.field select:invalid,
.field input[type="date"]:invalid {
  color: var(--color-muted);
  font-weight: 500;
}

.field input:focus,
.field select:focus {
  border-color: var(--color-brown);
}

.panel {
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
}

.panel--raised {
  background: var(--color-surface);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
}

.panel__sub {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.notice {
  margin-top: 22px;
  padding: 12px 16px;
  border: 1px solid var(--color-note-line);
  border-radius: var(--radius-sm);
  background: var(--color-note);
  color: var(--color-muted);
  font-size: 0.875rem;
}

.size-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
}

.size-result__label,
.size-result__dims {
  display: block;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.size-result__value {
  display: block;
  color: var(--color-accent-dark);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
}

.size-result__value--large {
  font-size: 1.55rem;
}

.formula {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 6px 0 18px;
}

.formula div {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-sand);
}

.formula dt {
  color: var(--color-brown);
  font-size: 0.72rem;
}

.formula dd {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
}

.formula--plain {
  margin: 14px 0 0;
}

.diagram {
  margin: 12px 0 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}

.diagram svg {
  width: 100%;
  height: auto;
}

.diagram__ground {
  stroke: #d8c8b2;
  stroke-width: 1.5;
}

.diagram__guide line {
  stroke: var(--color-accent);
  stroke-width: 1.3;
  stroke-dasharray: 4 4;
  opacity: 0.75;
}

.diagram__dim line {
  stroke: var(--color-accent);
  stroke-width: 2;
  marker-start: url(#arrowhead);
  marker-end: url(#arrowhead);
}

.diagram__label circle,
.diagram__pill rect {
  fill: var(--color-accent);
}

.diagram__label text,
.diagram__pill text {
  fill: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 900;
  text-anchor: middle;
}

.diagram__pill text {
  font-size: 14px;
  font-weight: 800;
}

.diagram__caption text {
  fill: var(--color-muted);
  font-size: 13px;
  text-anchor: middle;
}

.ad-slot {
  min-height: 100px;
  margin-top: 36px;
  border: 1.5px dashed #d9cfc3;
  border-radius: var(--radius-md);
}

.ad-slot:empty::before {
  content: "Advertisement";
  display: grid;
  place-items: center;
  min-height: 100px;
  color: #a89c8f;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* 6. Sections
   ========================================================================== */

/* Header */
.topbar {
  padding: 8px var(--gutter);
  background: var(--color-brown);
  color: #fff;
  font-size: 0.8125rem;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-brown);
  color: #fff;
}

.logo__mark .icon {
  width: 22px;
  height: 22px;
}

.logo__text span {
  color: var(--color-accent);
}

.logo--light {
  color: #fff;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--color-ink);
  transition: transform 0.25s, background-color 0.25s;
}

.nav-toggle__bar {
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bar::before {
  top: -8px;
}

.nav-toggle__bar::after {
  top: 8px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: 12px var(--gutter) 20px;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-surface);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.06);
}

.site-nav.is-open,
.no-js .site-nav {
  display: block;
}

.no-js .site-nav {
  position: static;
  box-shadow: none;
}

.no-js .nav-toggle {
  display: none;
}

.no-js .site-header__inner {
  flex-wrap: wrap;
}

.site-nav__list a:not(.btn) {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--color-line);
  font-weight: 600;
}

.site-nav__list a:not(.btn):hover,
.site-nav__list a:not(.btn)[aria-current="page"] {
  color: var(--color-accent);
}

.site-nav__list .menu-item-cta {
  margin-top: 16px;
}

.site-nav__list .menu-item-cta .btn {
  width: 100%;
}

/* Hero */
.hero {
  padding-block: 30px 40px;
}

.hero__inner {
  display: grid;
  gap: 30px;
}

.hero__title {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.4rem);
  line-height: 1.07;
}

.hero__title span {
  color: var(--color-accent);
}

.hero__lead {
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 1.0625rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__points .icon {
  color: var(--color-sage);
}

.hero__media {
  position: relative;
  margin: 14px 14px 14px 0;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: -14px -14px -14px 14px;
  border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
  background: var(--color-sand);
}

.hero__media img {
  position: relative;
  width: 100%;
  aspect-ratio: 11 / 10;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  object-fit: cover;
  object-position: 70% 100%;
}

/* Trip helper */
.planner {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.planner__head {
  padding: 24px 18px 20px;
}

.planner__form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.field-group {
  padding: 12px 14px 14px;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.field-group legend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 800;
}

.field-group legend .icon {
  color: var(--color-accent);
}

.field-group__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field--wide {
  grid-column: 1 / -1;
}

.planner__error {
  margin-top: 12px;
  color: #a8321a;
  font-size: 0.875rem;
  font-weight: 600;
}

.planner__hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 18px;
  border-top: 1px solid var(--color-line);
  background: var(--color-bg);
  color: var(--color-muted);
  font-size: 0.875rem;
}

.planner__hint ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.planner__hint li {
  padding: 7px 14px;
  border: 1.5px dashed #d8c8b2;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
}

.no-js .planner__submit,
.no-js .planner__hint {
  display: none;
}

.planner__results {
  background: var(--color-bg);
  animation: reveal 0.45s ease both;
}

.route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 14px;
  padding: 16px 18px;
  background: var(--color-brown);
  color: #fff;
}

.route__place strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
}

.route__place span,
.route__meta {
  color: #eadbc6;
  font-size: 0.8125rem;
}

.route__place:last-of-type {
  text-align: right;
}

.route__meta {
  grid-column: 1 / -1;
}

.route__line {
  position: relative;
  height: 32px;
  min-width: 60px;
}

.route__line::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 2px dashed rgba(255, 255, 255, 0.5);
}

.route__plane {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  color: #f4c48e;
  transform: rotate(45deg);
  animation: fly 4.5s ease-in-out infinite;
}

.planner__grid {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.result-card {
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  animation: rise 0.5s ease both;
}

.result-card:nth-child(2) {
  animation-delay: 0.08s;
}

.result-card:nth-child(3) {
  animation-delay: 0.16s;
}

.result-card:nth-child(4) {
  animation-delay: 0.24s;
}

.result-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
}

.result-card__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-sand);
  color: var(--color-brown);
}

.result-card__sub {
  margin: 4px 0 14px;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.result-card__note {
  margin: 10px 0;
  color: var(--color-muted);
  font-size: 0.8125rem;
}

.result-card__note:empty {
  display: none;
}

.result-card > .link-arrow {
  margin-top: 12px;
}

.airline-list li,
.link-list li,
.story-list li {
  border-top: 1px solid var(--color-line);
}

.airline-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 11px 0;
}

.airline-list strong {
  display: block;
  font-weight: 600;
}

.airline-list a:not(.btn) {
  color: var(--color-sage);
  font-size: 0.8125rem;
  font-weight: 600;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-weight: 500;
}

.link-list .icon {
  color: var(--color-sage);
}

.link-list a:hover,
.story-list a:hover {
  color: var(--color-accent-dark);
}

.story-list {
  margin-bottom: 12px;
}

.story-list a {
  display: block;
  padding: 11px 0;
  font-weight: 500;
}

.story-list span {
  display: block;
  color: var(--color-muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.story-list__empty {
  padding: 11px 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

/* Topics and intro cards */
.topics {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.topics__label {
  flex: none;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.feature-card {
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--color-sand);
  color: var(--color-brown);
  font-size: 1.4rem;
}

.feature-card p {
  margin: 6px 0 12px;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

/* Crate size */
.measure-key {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.measure-key li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.875rem;
}

.measure-key span {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.calculator {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.calculator__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.unit-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-sand);
}

.unit-toggle__btn {
  padding: 6px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.unit-toggle__btn.is-active {
  background: var(--color-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.calculator__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.calculator__label {
  color: var(--color-muted);
  font-size: 0.8125rem;
}

.calculator .size-result {
  margin-top: auto;
}

.calculator__note {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.crate-compare {
  margin-top: 30px;
  align-items: start;
}

.crate-compare__title {
  margin-bottom: 16px;
}

.table-wrap {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  font-size: 0.875rem;
}

.size-table th,
.size-table td {
  padding: 11px 12px;
  text-align: left;
}

.size-table thead th {
  background: var(--color-brown);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
}

.size-table tbody th {
  font-weight: 500;
}

.size-table td:nth-child(2) {
  white-space: nowrap;
}

.size-table tbody tr {
  border-top: 1px solid var(--color-line);
  transition: background-color 0.3s;
}

.size-table .is-match {
  background: var(--color-accent-soft);
  font-weight: 600;
}

.size-table .is-match th {
  font-weight: 700;
}

/* Blog */
.story {
  display: grid;
  margin-bottom: 26px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
}

.story__media img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.story__body {
  padding: 22px;
}

.story__body h3 {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 900;
}

.story__body p:not(.eyebrow) {
  margin: 10px 0 20px;
  color: var(--color-muted);
}

.post-card__media {
  display: block;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s;
}

.post-card:hover .post-card__media img {
  transform: scale(1.04);
}

.post-card h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
  line-height: 1.25;
}

.post-card h3 a:hover,
.story__body h3 a:hover {
  color: var(--color-accent-dark);
}

.post-card p:not(.eyebrow) {
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.post-card__meta {
  margin-top: 10px;
  font-size: 0.8125rem !important;
}

/* Official links */
.official {
  padding: 24px 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.official__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-sage-soft);
  color: var(--color-sage);
  font-size: 0.875rem;
  font-weight: 600;
}

.location label {
  white-space: nowrap;
}

.location select {
  padding: 4px 26px 4px 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2347693f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 7px;
  appearance: none;
  font-weight: 600;
  cursor: pointer;
}

.official .section__lead {
  margin-bottom: 24px;
}

.official__group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.1875rem;
}

.official__group .icon {
  color: var(--color-accent);
}

.official__list {
  display: grid;
  gap: 10px;
}

.official-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 11px 16px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-bg);
  transition: border-color 0.2s, transform 0.2s;
}

.official-link:hover {
  border-color: var(--color-brown);
  transform: translateY(-1px);
}

.official-link strong {
  display: block;
  font-weight: 600;
}

.official-link span {
  color: var(--color-muted);
  font-size: 0.8125rem;
}

.official-link strong {
  color: var(--color-ink);
  font-size: 0.96rem;
}

.official-link .icon {
  color: var(--color-sage);
}

.official__foot {
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 0.8438rem;
}

/* Shop */
.disclosure {
  display: inline-block;
  margin-bottom: 22px;
  padding: 10px 14px;
  border: 1px dashed var(--color-line);
  border-radius: 10px;
  color: var(--color-muted);
  font-size: 0.8125rem;
}

.chip-row--tabs {
  margin-bottom: 22px;
}

.shop-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.product img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.product__tag {
  margin-top: 10px;
  color: var(--color-accent-dark);
  font-size: 0.75rem;
  font-weight: 600;
}

.product h3 {
  margin: 4px 0;
  font-size: 1rem;
}

.product > p:not(.product__tag) {
  margin-bottom: 14px;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.product .btn {
  margin-top: auto;
  padding-inline: 8px;
  font-size: 0.8438rem;
}

.product--compact {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.product--compact h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
}

.product--compact .link-arrow {
  font-size: 0.8125rem;
}

.product__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-size: 1.2rem;
}

.shop__foot {
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 0.8125rem;
}

/* Community */
.community {
  display: grid;
  border-radius: var(--radius-lg);
  background: var(--color-brown);
  color: #fff;
  overflow: hidden;
}

.community__body {
  padding: 28px 22px;
}

.community__body > p:not(.eyebrow) {
  margin: 10px 0 24px;
  color: #eadbc6;
  font-size: 1.0625rem;
}

.community__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.community__media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

/* Footer */
.site-footer {
  padding-block: 40px 24px;
  background: var(--color-brown-dark);
  color: #e2d2bd;
  font-size: 0.9375rem;
}

.site-footer__top {
  display: grid;
  gap: 26px;
}

.site-footer__brand p {
  max-width: 340px;
  margin-top: 12px;
}

.site-footer h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 800;
}

.site-footer li a {
  display: inline-block;
  padding: 4px 0;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
}

.site-footer__bottom p a {
  text-decoration: underline;
}

.site-footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

/* Motion */
@keyframes reveal {
  from {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes fly {
  0% {
    left: 0;
    opacity: 0;
  }

  12%,
  88% {
    opacity: 1;
  }

  100% {
    left: calc(100% - 22px);
    opacity: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .route__plane {
    left: calc(50% - 11px);
  }
}

/* Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  .hero__actions,
  .community__actions {
    flex-direction: row;
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .measure-key {
    grid-template-columns: 1fr 1fr;
  }

  .field-group__fields--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .field--wide {
    grid-column: auto;
  }

  .planner__grid {
    grid-template-columns: 1fr 1fr;
  }

  .shop-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product--compact {
    grid-column: span 2;
  }

  .site-footer__top {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 24px;
  }

  body {
    font-size: 1.0625rem;
  }

  .section {
    padding-block: 72px;
  }

  .section--tight,
  .section--flush {
    padding-top: 0;
  }

  .section--white + .section {
    padding-top: 72px;
  }

  .section__header {
    margin-bottom: 36px;
  }

  .section__header--split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .section__lead {
    font-size: 1.125rem;
  }

  .grid--2 {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }

  .topbar {
    font-size: 0.875rem;
  }

  .site-header__inner {
    min-height: 80px;
  }

  .logo {
    font-size: 1.625rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav,
  .no-js .site-nav {
    position: static;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 40px;
    border: 0;
    box-shadow: none;
  }

  .site-nav__list {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 6px 26px;
  }

  .site-nav__list .menu-item-cta {
    margin: 0 0 0 auto;
  }

  .site-nav__list a:not(.btn) {
    padding: 8px 0;
    border: 0;
    font-size: 1rem;
  }

  .site-nav__list .menu-item-cta .btn {
    width: auto;
  }

  .hero {
    padding-block: 64px 80px;
  }

  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
  }

  .hero__lead {
    font-size: 1.25rem;
  }

  .hero__media {
    margin: 26px 30px 26px 0;
  }

  .hero__media::before {
    inset: -26px -30px -26px 20px;
  }

  .planner__head {
    padding: 36px 44px 30px;
  }

  .planner__form {
    grid-template-columns: 3fr 2fr auto;
    align-items: end;
  }

  .planner__submit {
    margin-bottom: 14px;
  }

  .planner__hint {
    padding: 22px 44px;
  }

  .route {
    grid-template-columns: auto 1fr auto auto;
    gap: 24px;
    padding: 22px 44px;
  }

  .route__place strong {
    font-size: 1.375rem;
  }

  .route__meta {
    grid-column: auto;
    font-size: 0.875rem;
  }

  .planner__grid {
    gap: 22px;
    padding: 30px 44px 40px;
  }

  .result-card {
    padding: 24px;
  }

  .topics {
    margin-bottom: 40px;
  }

  .feature-card {
    padding: 28px;
  }

  .panel {
    padding: 26px;
  }

  .calculator {
    padding: 34px;
  }

  .formula dt {
    font-size: 0.8125rem;
  }

  .crate-compare {
    grid-template-columns: 1.05fr 0.95fr;
    margin-top: 40px;
  }

  .size-table {
    font-size: 0.9375rem;
  }

  .size-table th,
  .size-table td {
    padding: 12px 14px;
  }

  .story {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .story__media img {
    min-height: 380px;
  }

  .story__body {
    align-self: center;
    padding: 46px;
  }

  .official {
    padding: 48px;
  }

  .official__head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .shop-grid {
    gap: 22px;
  }

  .product {
    padding: 22px;
  }

  .product--compact {
    grid-column: auto;
    padding: 14px 16px;
  }

  .product h3 {
    font-size: 1.0625rem;
  }

  .product .btn {
    font-size: 0.9375rem;
  }

  .community {
    grid-template-columns: 1fr 1fr;
  }

  .community__body {
    padding: 56px;
  }

  .ad-slot {
    margin-top: 40px;
  }

  .site-footer {
    padding-block: 60px 30px;
  }

  .site-footer__top {
    gap: 40px;
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* 7. WordPress and inner pages
   ========================================================================== */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.screen-reader-text:focus {
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 10px 16px;
  clip: auto;
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: #fff;
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.logo--image img {
  width: auto;
  max-height: 52px;
}

.container--narrow {
  max-width: calc(780px + var(--gutter) * 2);
}

.page-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.page-head h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.12;
}

.page-head .chip-row {
  margin-top: 18px;
}

.post-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-sand);
  color: var(--color-brown);
}

.post-card__placeholder .icon {
  width: 44px;
  height: 44px;
}

.story__media .post-card__placeholder {
  height: 100%;
  min-height: 220px;
}

/* Single story and pages */
.entry__header {
  margin-bottom: 24px;
}

.entry__title {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
}

.entry__image {
  margin: 0 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.entry__image img {
  width: 100%;
  height: auto;
}

.entry-content {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.entry-content > * + * {
  margin-top: 1.1em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.8em;
  line-height: 1.25;
}

.entry-content h2 {
  font-size: 1.7rem;
}

.entry-content h3 {
  font-size: 1.35rem;
}

.entry-content a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li + li {
  margin-top: 0.4em;
}

.entry-content img,
.entry-content video,
.entry-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.entry-content blockquote {
  margin-inline: 0;
  padding: 6px 0 6px 20px;
  border-left: 4px solid var(--color-accent);
  color: var(--color-muted);
  font-size: 1.15rem;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  text-align: left;
}

.entry-content pre {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--color-brown-dark);
  color: #fff;
  overflow-x: auto;
}

.entry-content--after {
  max-width: 780px;
  margin: 40px auto 0;
}

.entry__footer {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--color-line);
}

.entry__note {
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.entry__note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.alignleft {
  float: left;
  margin: 0.4em 1.4em 1em 0;
}

.alignright {
  float: right;
  margin: 0.4em 0 1em 1.4em;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.alignwide {
  margin-inline: -4vw;
}

.alignfull {
  margin-inline: calc(50% - 50vw);
}

.wp-caption,
.wp-block-image figcaption,
.entry-content figcaption {
  color: var(--color-muted);
  font-size: 0.875rem;
  text-align: center;
}

.sticky .post-card__media::after,
.sticky .story__media::after {
  content: none;
}

/* Pagination and post navigation */
.pagination .nav-links,
.post-navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-weight: 700;
}

a.page-numbers:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}

.page-numbers.current {
  border-color: var(--color-brown);
  background: var(--color-brown);
  color: #fff;
}

.post-navigation {
  margin-top: 44px;
}

.post-navigation .nav-links {
  justify-content: space-between;
}

.post-navigation a {
  display: block;
  max-width: 340px;
  font-weight: 700;
}

.post-navigation .nav-label {
  display: block;
  color: var(--color-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.page-links {
  margin-top: 1.4em;
  font-weight: 700;
}

/* Search form and empty state */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
}

.search-form__field {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
}

.no-results {
  padding: 40px 0;
}

.no-results h2 {
  margin-bottom: 10px;
}

.no-results .search-form {
  margin-top: 18px;
}

/* Comments */
.comments {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--color-line);
}

.comments__title {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.comment-list,
.comment-list .children {
  list-style: none;
  padding: 0;
}

.comment-list .children {
  margin-left: 24px;
}

.comment-body {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.comment-meta {
  margin-bottom: 8px;
  font-size: 0.875rem;
}

.comment-author .avatar {
  float: left;
  margin-right: 12px;
  border-radius: 50%;
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.comment-form p {
  margin-bottom: 14px;
}

.comment-form .submit {
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

/* Footer widgets */
.site-footer__widgets {
  margin-top: 28px;
  font-size: 0.9375rem;
}

.widget__title {
  font-size: 1rem;
}

@media (min-width: 960px) {
  .alignwide {
    margin-inline: -80px;
  }
}
