:root {
  color-scheme: light;
  --paper: #f5f1e9;
  --surface: #ebe5d9;
  --white: #fffdf8;
  --ink: #292e29;
  --muted: #605e54;
  --green: #2f4039;
  --green-dark: #213129;
  --rust: #85503a;
  --line: #c8c0b1;
  --error: #922c25;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --section-space: clamp(3.5rem, 7vw, 6.5rem);
  --content-width: 80rem;
  --shadow: 0 1rem 3rem rgb(41 46 41 / 12%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  -webkit-text-size-adjust: 100%;
}

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

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

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.65rem, 7vw, 5.75rem);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

h3 {
  font-size: clamp(1.75rem, 2.7vw, 2.3rem);
}

p + p {
  margin-top: 1rem;
}

p,
a,
label,
button,
address,
li,
th,
td {
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--rust);
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a,
button {
  transition: color 180ms ease, background-color 180ms ease,
    border-color 180ms ease;
}

:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 5px;
}

::selection {
  background: var(--green);
  color: var(--paper);
}

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

img {
  height: auto;
}

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

button,
.primary-button,
.compact-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--green);
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.compact-cta:hover {
  background: var(--green);
  color: var(--paper);
}

button:disabled {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: not-allowed;
}

.primary-button {
  width: fit-content;
  max-width: 100%;
  padding: 1rem 1.5rem;
  background: var(--green);
  color: var(--paper);
}

.primary-button:hover {
  background: var(--green-dark);
  color: var(--white);
}

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

.section {
  margin-top: var(--section-space);
}

.eyebrow {
  color: var(--rust);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lede {
  max-width: 42rem;
  color: #4c5047;
  font-size: clamp(1.125rem, 1.8vw, 1.4375rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.small {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: fit-content;
  max-width: 100%;
  min-height: 2.75rem;
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--rust);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.text-link span {
  flex-shrink: 0;
  font-size: 1.25rem;
}

.skip-link {
  position: fixed;
  inset: 0.75rem auto auto 1rem;
  z-index: 100;
  padding: 0.8rem 1.25rem;
  transform: translateY(-200%);
  background: var(--green);
  color: var(--white);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--white);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.5rem;
  padding: 0.75rem var(--gutter);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: var(--green);
  font: 1rem/1.15 var(--serif);
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand svg {
  flex: 0 0 1.375rem;
  width: 1.375rem;
  height: 1.875rem;
}

.brand span {
  min-width: 0;
}

.desktop-nav {
  display: none;
}

.header-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}

.compact-cta {
  display: none;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.menu-toggle {
  width: 2.75rem;
  padding: 0.25rem;
  font-size: 1.25rem;
}

a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--rust);
  text-underline-offset: 0.4em;
}

.hero {
  display: grid;
  gap: 2.5rem;
  padding-top: clamp(2.5rem, 5vw, 5rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-copy .lede {
  max-width: 29rem;
}

.hero-caption {
  max-width: 23rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.hero-art {
  width: 100%;
  max-width: 40rem;
  justify-self: center;
}

.parisian-apartment-illustration {
  width: 100%;
  height: auto;
  background: var(--surface);
}

figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding-top: 0.875rem;
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1.6;
}

.section-heading {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-heading .eyebrow {
  margin-bottom: 1rem;
}

.section-heading > p {
  max-width: 26rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

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

.guide-card,
.note-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-top: 2px solid var(--rust);
  background: var(--surface);
}

.guide-card p,
.note-card p {
  margin: 0;
}

.guide-card h3 a {
  text-decoration: none;
}

.guide-card > p {
  color: #56574d;
  font-size: 0.9375rem;
}

.guide-card > .text-link {
  margin-top: auto;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.625rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.approach {
  padding-block: var(--section-space);
  background: var(--green);
  color: var(--paper);
}

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

.approach .eyebrow {
  margin-bottom: 1.5rem;
  color: #d8c2a4;
}

.approach .lede {
  margin-bottom: 1.5rem;
  color: var(--paper);
}

.approach .text-link {
  margin-top: 1.5rem;
  border-color: #d8c2a4;
}

.approach a:hover {
  color: #e1c5a4;
}

.approach :focus-visible {
  outline-color: #e1c5a4;
}

.site-footer {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
}

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

.footer-brand {
  display: inline-block;
  font: 1.625rem/1.3 var(--serif);
  letter-spacing: -0.04em;
  text-decoration: none;
}

.footer-grid > div > p {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.footer-grid > div > .small {
  font-size: 0.75rem;
}

.footer-grid nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.8125rem;
}

.footer-heading {
  margin-bottom: 0.875rem;
  color: var(--rust);
  font: 700 0.6875rem/1.6 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid nav a {
  padding-block: 0.25rem;
  text-decoration: none;
}

.footer-grid nav a:hover {
  text-decoration: underline;
}

.link-button {
  justify-content: flex-start;
  min-height: 2rem;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.link-button:hover {
  background: transparent;
  color: var(--rust);
}

.article-page,
.legal-page,
.contact-page {
  padding-bottom: var(--section-space);
}

.article-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  max-width: 65rem;
}

.article-header .lede {
  max-width: 48rem;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.75rem;
}

.article-layout {
  display: grid;
  align-items: start;
  gap: 3rem;
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.article-aside p:not(.eyebrow) {
  font: 1.5rem/1.5 var(--serif);
  letter-spacing: -0.015em;
}

.article-aside nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}

.article-aside nav a {
  padding-block: 0.25rem;
}

.prose {
  width: 100%;
  max-width: 47.5rem;
}

.prose section + section {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.prose h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  line-height: 1.2;
}

.prose p,
.prose li {
  color: #45483f;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

.next-guide {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--rust);
}

.next-guide .eyebrow {
  color: var(--rust);
}

.next-guide a {
  font: clamp(1.6rem, 2.5vw, 2rem)/1.3 var(--serif);
  letter-spacing: -0.025em;
  text-decoration: none;
}

.next-guide a span {
  display: inline-block;
  margin-left: 0.35rem;
}

.legal-prose {
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}

.table-wrapper {
  max-width: 100%;
  margin-top: 1.5rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

table {
  width: 100%;
  min-width: 35rem;
  border-collapse: collapse;
  font-size: 0.8125rem;
  line-height: 1.65;
}

caption {
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: left;
}

th,
td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--green);
  color: var(--paper);
}

tbody tr:nth-child(even) {
  background: var(--surface);
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.contact-layout {
  display: grid;
  align-items: start;
  gap: 3.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.contact-layout > section > h2 {
  margin-bottom: 1.5rem;
}

.contact-layout > section > p {
  color: var(--muted);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 700;
}

input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #8c8b7e;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 180ms ease;
}

input:not([type="checkbox"]):hover,
textarea:hover,
select:hover {
  border-color: var(--green);
}

textarea {
  min-height: 11rem;
  resize: vertical;
}

.field-hint,
.field-error {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.field-hint {
  color: var(--muted);
}

.field-error {
  color: var(--error);
}

.is-invalid,
[aria-invalid="true"] {
  border: 2px solid var(--error) !important;
}

form > p {
  margin: 0;
}

.form-status {
  color: var(--green);
  font-size: 0.875rem;
}

.form-status:empty,
[data-cookie-status]:empty {
  display: none;
}

.draft-result h3 {
  font-size: 1.75rem;
}

.draft-preview {
  max-width: 100%;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  font: 0.8125rem/1.75 var(--sans);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-details h2 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
}

address {
  font-size: 0.9375rem;
  font-style: normal;
}

.paris-neighbourhood-schematic {
  width: 100%;
  height: auto;
  background: var(--surface);
}

.contact-note {
  max-width: 47.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.contact-note h2 {
  margin-block: 1.5rem;
}

.notice {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-left: 3px solid var(--rust);
  background: var(--surface);
}

.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: grid;
  align-items: center;
  gap: 1rem;
  max-height: 60vh;
  max-height: 60dvh;
  padding: 1.25rem var(--gutter);
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 -0.5rem 2rem rgb(41 46 41 / 8%);
}

.cookie-banner h2 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.cookie-banner p {
  max-width: 40rem;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions button {
  flex: 1 1 8rem;
  padding-inline: 0.875rem;
  font-size: 0.75rem;
}

dialog {
  width: min(36rem, calc(100% - 2rem));
  max-width: calc(100% - 2rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

dialog:not([open]) {
  display: none;
}

dialog::backdrop {
  background: rgb(25 34 31 / 78%);
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dialog-heading h2 {
  font-size: clamp(1.65rem, 4vw, 2rem);
}

.dialog-heading button {
  flex-shrink: 0;
  padding-inline: 0.75rem;
  font-size: 0.75rem;
}

.preferences-dialog > p {
  font-size: 0.875rem;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-block: 1.25rem;
  padding-block: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

input[type="checkbox"] {
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--green);
}

input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

.preferences-dialog .small {
  margin-top: 1rem;
}

.menu-dialog nav {
  display: flex;
  flex-direction: column;
}

.menu-dialog nav a {
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
  font: 1.5rem/1.3 var(--serif);
  letter-spacing: -0.025em;
  text-decoration: none;
}

.menu-dialog nav a[aria-current="page"] {
  color: var(--rust);
  text-decoration: underline;
}

:where(
  .site-header,
  .hero,
  .section-heading,
  .guide-grid,
  .approach-grid,
  .footer-grid,
  .article-layout,
  .contact-layout,
  .cookie-banner,
  .dialog-heading
) > * {
  min-width: 0;
}

@media (min-width: 30rem) {
  .compact-cta {
    display: inline-flex;
  }

  .brand {
    font-size: 1.125rem;
  }

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

  .footer-grid > div {
    grid-column: 1 / -1;
  }
}

@media (min-width: 40rem) {
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-card {
    min-height: 21rem;
  }

  .guide-card:last-child {
    grid-column: 1 / -1;
  }

  .cookie-actions {
    justify-content: flex-start;
  }

  .cookie-actions button {
    flex: 0 1 auto;
  }
}

@media (min-width: 48rem) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1.5rem;
    min-height: 5rem;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    font-size: 0.75rem;
  }

  .desktop-nav a {
    padding-block: 0.75rem;
    text-decoration: none;
  }

  .desktop-nav a[aria-current="page"],
  .desktop-nav a:hover {
    text-decoration: underline;
  }

  .menu-toggle {
    display: none;
  }

  .brand svg {
    flex-basis: 1.75rem;
    width: 1.75rem;
    height: 2rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
  }

  .hero-copy h1 {
    font-size: clamp(3.25rem, 6.5vw, 5.75rem);
  }

  .hero-caption {
    max-width: 18rem;
    margin-top: 1rem;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
    gap: 3rem;
  }

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

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

  .footer-grid > div {
    grid-column: auto;
  }
}

@media (min-width: 60rem) {
  .article-layout {
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.6fr);
    gap: clamp(3rem, 6vw, 5rem);
  }

  .article-aside .note-card {
    max-width: 22rem;
  }

  .article-aside nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 5rem);
  }
}

@media (min-width: 70rem) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .header-actions {
    justify-content: flex-end;
  }

  .brand {
    font-size: 1.25rem;
  }

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

  .guide-card:last-child {
    grid-column: 2 / 4;
  }

  .cookie-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .guide-card,
  .note-card,
  .cookie-banner,
  .draft-preview {
    border: 1px solid CanvasText;
  }

  :focus-visible {
    outline-color: Highlight;
  }

  .is-invalid,
  [aria-invalid="true"] {
    border-style: dashed !important;
  }
}

@media print {
  :root {
    --paper: #fff;
    --surface: #fff;
    --ink: #000;
    --muted: #333;
    --green: #000;
    --rust: #000;
    --line: #aaa;
  }

  body {
    font-size: 10pt;
    line-height: 1.6;
  }

  .skip-link,
  .site-header,
  .site-footer,
  .cookie-banner,
  dialog,
  .article-aside,
  .next-guide,
  .header-actions {
    display: none !important;
  }

  .container {
    width: 100%;
  }

  .hero,
  .article-layout,
  .contact-layout,
  .approach-grid {
    display: block;
  }

  .article-header {
    padding-block: 1rem 2rem;
  }

  h1,
  .hero-copy h1 {
    font-size: 36pt;
  }

  h2,
  .prose h2 {
    font-size: 22pt;
  }

  h3 {
    font-size: 18pt;
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }

  .prose,
  .legal-prose {
    max-width: none;
  }

  .approach {
    background: #fff;
    color: #000;
  }

  .approach .lede,
  .approach .eyebrow {
    color: #000;
  }

  .hero-art {
    max-width: 24rem;
    margin: 2rem auto;
  }

  .guide-card,
  .note-card,
  figure,
  tr {
    break-inside: avoid;
  }

  .table-wrapper {
    overflow: visible;
  }

  table {
    min-width: 0;
  }

  thead th {
    background: #eee;
    color: #000;
  }

  a {
    color: #000;
  }

  button,
  .primary-button {
    box-shadow: none;
  }
}