:root {
  --ink: #20272b;
  --deep-ink: #111619;
  --ivory: #f5f1e7;
  --paper: #fbfaf6;
  --mist: #d9ddd9;
  --silver: #a8b0ae;
  --slate: #626e71;
  --teal: #27777b;
  --turquoise: #49a5a3;
  --sage: #7a896f;
  --amber: #c69a43;
  --copper: #a86d55;
  --blue: #426d78;
  --danger: #9b3028;
  --shadow-offset: 7px;
  --content-width: 1180px;
  --text-width: 850px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

button {
  cursor: pointer;
}

.shell {
  width: min(var(--content-width), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.5rem max(1rem, calc((100% - var(--content-width)) / 2));
  background: var(--deep-ink);
  color: var(--ivory);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.65rem;
  color: var(--ivory);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 1.9rem;
  width: 1.9rem;
  height: 1.9rem;
  background: var(--amber);
  color: var(--deep-ink);
  font-size: 1.2rem;
  line-height: 1;
}

.menu-toggle {
  display: block;
  margin-left: auto;
  border: 0;
  padding: 0.55rem 0.8rem;
  background: var(--teal);
  color: var(--ivory);
  font-weight: 800;
}

.main-nav {
  position: absolute;
  inset: 100% 0 auto;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 1rem;
  background: var(--deep-ink);
  box-shadow: 0 0.75rem 1.5rem rgb(17 22 25 / 22%);
}

.main-nav.is-visible {
  display: flex;
}

.main-nav a {
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid var(--slate);
  color: var(--ivory);
  font-size: 0.88rem;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--turquoise);
}

.main-nav .nav-contact {
  margin-top: 0.75rem;
  border: 2px solid var(--turquoise);
  padding: 0.45rem 0.7rem;
  text-align: center;
}

.hero {
  display: grid;
  gap: 2rem;
  padding-block: 3.5rem;
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.kicker {
  margin: 0;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.4;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--ink);
}

.hero h1,
.page-hero h1 {
  margin: 1rem 0 1.5rem;
  font-size: clamp(2.8rem, 13vw, 6.8rem);
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.hero h1 em {
  color: var(--teal);
  font-style: normal;
}

.lead {
  max-width: 650px;
  font-size: 1.15rem;
  line-height: 1.55;
}

.lead.narrow {
  max-width: 700px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.75rem 0;
}

.button {
  display: inline-block;
  border: 2px solid var(--deep-ink);
  padding: 0.65rem 1rem;
  background: var(--teal);
  color: var(--ivory);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--deep-ink);
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  background: var(--turquoise);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--deep-ink);
}

.button.secondary {
  background: var(--ivory);
  color: var(--ink);
}

.route-note {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.route-note span {
  padding-inline: 0.45rem;
  color: var(--amber);
}

.hero-visual,
.page-hero img {
  width: 100%;
  border: 3px solid var(--deep-ink);
  object-fit: cover;
  box-shadow: 10px 10px 0 var(--amber);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.stamp,
.tag {
  position: absolute;
  border: 2px solid var(--deep-ink);
  padding: 0.65rem;
  background: var(--ivory);
  color: var(--deep-ink);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.stamp {
  top: 1rem;
  right: 1rem;
  border-radius: 50%;
  transform: rotate(8deg);
}

.tag {
  bottom: 1rem;
  left: 1rem;
  background: var(--amber);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%, 0 85%);
}

.section {
  padding-block: 3.5rem;
}

.section-heading {
  margin-bottom: 2rem;
  border-bottom: 4px solid var(--deep-ink);
}

.section-heading h2,
.routine h2 {
  margin: 0.75rem 0 1.35rem;
  font-size: clamp(2rem, 8vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.topic-grid {
  display: grid;
  gap: 2rem;
}

.topic-card {
  min-width: 0;
}

.topic-card img {
  width: 100%;
  height: 13.5rem;
  border: 2px solid var(--deep-ink);
  object-fit: cover;
}

.glass-panel {
  min-height: 0;
  margin-top: 1.25rem;
  border: 2px solid var(--deep-ink);
  padding: 1.25rem;
  background: rgb(245 241 231 / 88%);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--silver);
}

.glass-panel h3 {
  margin: 0.5rem 0;
  font-size: 1.5rem;
  line-height: 1.1;
}

.glass-panel p {
  margin-block: 0.75rem;
}

.text-link {
  color: var(--teal);
  font-weight: 800;
}

.routine {
  margin-top: 2rem;
  padding-block: 3.5rem;
  background: var(--ivory);
}

.steps {
  display: grid;
  border-top: 3px solid var(--deep-ink);
  border-bottom: 3px solid var(--deep-ink);
}

.steps div {
  display: grid;
  gap: 0.2rem;
  padding: 1.15rem 0.85rem;
  border-top: 2px solid var(--deep-ink);
}

.steps div:first-child {
  border-top: 0;
}

.steps b {
  color: var(--copper);
}

.steps strong {
  font-size: 1.1rem;
}

.steps span {
  font-size: 0.85rem;
}

.page-hero {
  display: grid;
  align-items: center;
  gap: 2rem;
  padding-block: 3rem;
  background: var(--ivory);
}

.page-hero h1 {
  font-size: clamp(2.8rem, 11vw, 5.8rem);
}

.page-hero img {
  height: 17.5rem;
}

.prose {
  width: min(var(--text-width), 100%);
  padding-block: 3.5rem;
}

.prose h2 {
  margin-top: 2.75rem;
  font-size: 2rem;
  line-height: 1.1;
}

.prose h3 {
  margin-top: 1.75rem;
  line-height: 1.2;
}

.prose p,
.prose ul,
.prose ol {
  margin-block: 1rem;
}

.prose li {
  margin-block: 0.5rem;
}

.prose strong {
  font-weight: 800;
}

.note-grid,
.contact-layout {
  display: grid;
  gap: 1.5rem;
}

.note-grid > div {
  border: 2px solid var(--deep-ink);
  padding: 1.25rem;
  background: var(--mist);
}

.note-grid h3 {
  margin-top: 0;
}

.legal-page {
  max-width: 900px;
  min-height: 55vh;
}

.legal-page h1 {
  margin-block: 1rem 2rem;
  font-size: clamp(2.8rem, 10vw, 5rem);
  line-height: 1;
}

table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  overflow: hidden;
}

th,
td {
  border: 2px solid var(--deep-ink);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--ink);
  color: var(--ivory);
}

.contact-layout {
  align-items: start;
  padding-block: 2.5rem 3.5rem;
}

.map-block {
  display: grid;
  align-content: space-between;
  min-height: 18rem;
  border: 3px solid var(--deep-ink);
  padding: 1.75rem;
  background:
    linear-gradient(135deg, transparent 24%, rgb(245 241 231 / 12%) 25%, transparent 26%),
    linear-gradient(45deg, transparent 46%, rgb(245 241 231 / 12%) 47%, transparent 48%),
    var(--blue);
  background-size: 4rem 4rem;
  color: var(--ivory);
  box-shadow: 10px 10px 0 var(--amber);
}

.map-block strong {
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.contact-form {
  border: 2px solid var(--deep-ink);
  padding: 1.25rem;
  background: var(--ivory);
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 0.65rem;
  background: var(--paper);
  color: var(--ink);
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field-error {
  display: block;
  min-height: 1.25rem;
  color: var(--danger);
  font-size: 0.85rem;
}

.is-invalid {
  border-color: var(--danger) !important;
  background: #fff0ee !important;
}

.form-status {
  min-height: 1.5rem;
  font-weight: 800;
}

.site-footer {
  margin-top: 3.5rem;
  padding: 3.5rem max(1rem, calc((100% - var(--content-width)) / 2)) 1.5rem;
  background: var(--deep-ink);
  color: var(--ivory);
}

.site-footer h2 {
  color: var(--ivory);
  font-size: 2rem;
  line-height: 1.1;
}

.site-footer h3 {
  margin-top: 0;
  color: var(--turquoise);
}

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

.footer-grid a {
  display: block;
  margin-block: 0.35rem;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--turquoise);
}

.legal-line {
  margin-top: 2.5rem;
  border-top: 1px solid var(--slate);
  padding-top: 1.25rem;
  color: var(--silver);
  overflow-wrap: anywhere;
}

.cookie-banner {
  position: fixed;
  z-index: 20;
  right: 0.5rem;
  bottom: 0.5rem;
  left: 0.5rem;
  display: block;
  padding: 1rem;
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 6px 6px 0 var(--amber);
}

.cookie-banner p {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
}

.cookie-banner button,
.preferences-dialog button {
  margin: 0.2rem 0.25rem 0.2rem 0;
  border: 2px solid var(--ivory);
  padding: 0.5rem 0.7rem;
  background: transparent;
  color: var(--ivory);
  font-weight: 800;
}

.cookie-banner button:hover,
.preferences-dialog button:hover {
  background: var(--teal);
}

.cookie-banner[hidden] {
  display: none;
}

.preferences-dialog {
  max-width: 390px;
  border: 3px solid var(--amber);
  padding: 1.25rem;
  background: var(--ink);
  color: var(--ivory);
}

.preferences-dialog h2 {
  margin-top: 0;
  color: var(--ivory);
}

.preferences-dialog::backdrop {
  background: rgb(17 22 25 / 55%);
}

.dialog-close {
  margin-left: 0.5rem !important;
}

@media (min-width: 600px) {
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .note-grid,
  .contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .steps div:nth-child(2) {
    border-top: 0;
  }

  .steps div:nth-child(odd) {
    border-right: 2px solid var(--deep-ink);
  }
}

@media (min-width: 768px) {
  .site-header {
    gap: 1.5rem;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .main-nav a {
    border: 0;
    padding: 0.25rem 0;
    font-size: 0.82rem;
  }

  .main-nav .nav-contact {
    margin-top: 0;
    padding: 0.35rem 0.65rem;
  }

  .hero,
  .page-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }

  .hero {
    padding-block: 4.5rem;
  }

  .page-hero {
    padding-block: 4rem;
  }

  .page-hero img {
    height: 24rem;
  }

  .topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }

  .topic-card:nth-child(4),
  .topic-card:nth-child(5) {
    transform: translateX(50%);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
  }

  .cookie-banner p {
    flex: 1;
    margin: 0;
  }
}

@media (min-width: 980px) {
  .topic-card:nth-child(4),
  .topic-card:nth-child(5) {
    transform: translateX(50%);
  }

  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .steps div,
  .steps div:nth-child(n) {
    border-top: 0;
    border-right: 2px solid var(--deep-ink);
  }

  .steps div:last-child {
    border-right: 0;
  }
}

@media (max-width: 979px) {
  .topic-card:nth-child(4),
  .topic-card:nth-child(5) {
    transform: none;
  }
}

@media (max-width: 767px) {
  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }

  .hero-visual img {
    min-height: 17.5rem;
  }

  .routine {
    margin-top: 2rem;
  }
}

@media (max-width: 420px) {
  .shell {
    width: calc(100% - 1.5rem);
  }

  .brand {
    font-size: 0.82rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.7rem;
  }

  .glass-panel {
    padding: 1rem;
    box-shadow: 4px 4px 0 var(--silver);
  }

  .hero-visual,
  .page-hero img {
    box-shadow: 5px 5px 0 var(--amber);
  }

  .site-footer {
    padding-inline: 0.75rem;
  }

  th,
  td {
    padding: 0.55rem;
    font-size: 0.9rem;
  }
}

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

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