:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --surface: #fcfaf5;
  --ink: #262c26;
  --muted: #61665b;
  --forest: #344b3d;
  --forest-deep: #263c32;
  --olive: #e5e6d9;
  --sand: #ece2d3;
  --terracotta: #864628;
  --accent: #d3a06d;
  --line: #d5d5c9;
  --error: #9b3029;
  --focus: #99512c;
  --font-body: "Segoe UI", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(3.5rem, 8vw, 7rem);
  --radius: 3px;
  --shadow: 0 16px 48px rgb(38 44 38 / 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(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

::selection {
  background: #d6bc9e;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 160ms ease, background-color 160ms ease,
    border-color 160ms ease;
}

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

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

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

button,
input,
textarea,
select,
a {
  -webkit-tap-highlight-color: rgb(134 70 40 / 15%);
}

button {
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

img {
  display: block;
  height: auto;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7.4vw, 6.25rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 3.7vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.9rem;
  font-size: 1.65rem;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

p {
  margin-bottom: 1.25rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

address {
  font-style: normal;
}

code {
  padding: 0.12em 0.3em;
  border-radius: var(--radius);
  background: var(--olive);
  font-family: var(--font-mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.page-shell,
.header-inner,
.footer-inner {
  width: min(var(--page-width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}

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

.eyebrow {
  margin-bottom: 1.4rem;
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  max-width: 37rem;
  color: #51594e;
  font-size: clamp(1.125rem, 1.7vw, 1.3rem);
  line-height: 1.7;
}

.quiet,
.field-hint,
.fine-print {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  width: fit-content;
  max-width: 100%;
  padding-block: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.button,
.header-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  min-height: 48px;
  max-width: 100%;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--forest-deep);
  border-radius: var(--radius);
  background: var(--forest-deep);
  color: var(--surface);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease,
    color 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.header-cta:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.button-secondary {
  border-color: #788071;
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--forest);
  background: var(--olive);
  color: var(--ink);
}

.button:disabled {
  border-color: #c6c9bd;
  background: #dfe1d6;
  color: #666c5f;
  box-shadow: none;
}

.plain-button,
.footer-preferences {
  min-height: 44px;
  padding: 0.5rem 0;
  border: 0;
  background: transparent;
  font-size: 0.875rem;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.plain-button:hover,
.footer-preferences:hover {
  color: var(--terracotta);
}

/* Header and navigation */
.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  min-height: 80px;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand svg {
  flex: 0 0 24px;
}

.main-nav {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  order: 4;
  padding-top: 0.5rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.85rem;
  text-decoration: none;
}

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

.header-cta {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
}

.menu-toggle:hover {
  background: var(--olive);
}

@supports selector(:has(*)) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-inner:has(.menu-toggle[aria-expanded="false"]) .main-nav {
    display: none;
  }

  .header-inner:has(.menu-toggle[aria-expanded="true"]) .main-nav {
    display: flex;
    border-top: 1px solid var(--line);
  }
}

/* Opening field study */
.hero {
  display: grid;
  align-items: center;
  gap: 2.75rem;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.hero-copy .button {
  margin-top: 0.7rem;
}

.hero-copy > .quiet {
  margin-top: 1.2rem;
  margin-bottom: 0;
  font-size: 0.75rem;
}

.hero-figure {
  min-width: 0;
}

.photography-landscape-illustration {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #c9c9b9;
}

.hero-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  line-height: 1.6;
}

/* Guide collection */
.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
  scroll-margin-top: 2rem;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

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

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 25rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.accent-card {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--olive);
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.guide-card:hover,
.guide-card:focus-within {
  border-color: #9b9f8d;
  box-shadow: 0 8px 24px rgb(38 44 38 / 5%);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.6;
}

.card-meta > span:first-child {
  color: var(--terracotta);
}

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

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

.guide-card > p {
  margin-bottom: 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.visual-study {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  height: 170px;
  margin-bottom: 1.65rem;
  overflow: hidden;
  border-radius: 2px;
}

.exposure-light-study {
  background: #303e34;
}

.exposure-light-study span {
  width: 91px;
  height: 91px;
  border-radius: 50%;
  background: #ead6ad;
  box-shadow: 0 0 50px 12px rgb(234 214 173 / 13%);
}

.exposure-light-study::after {
  position: absolute;
  inset: 16px;
  border: 1px solid rgb(245 242 235 / 18%);
  content: "";
}

.camera-optics-study {
  background: #dedfce;
}

.camera-optics-study span {
  width: 76px;
  height: 76px;
  border: 13px solid #8d977e;
  border-radius: 50%;
  background: #263c32;
  box-shadow: 0 0 0 10px #c4c7b3, 0 0 0 12px #5a6857,
    0 0 0 24px #c4c7b3, 0 0 0 26px #8d977e;
}

.camera-optics-study span::after {
  display: block;
  width: 14px;
  height: 14px;
  margin: 9px;
  border-radius: 50%;
  background: #d3a06d;
  content: "";
}

.window-light-study {
  background: #757960;
}

.window-light-study span {
  width: 130px;
  height: 180px;
  background:
    linear-gradient(90deg, transparent 47%, #757960 47% 53%, transparent 53%),
    linear-gradient(transparent 46%, #757960 46% 51%, transparent 51%),
    #ead4a7;
  transform: skewY(-25deg) rotate(15deg) translate(14px, 4px);
  box-shadow: 15px 16px 35px rgb(234 212 167 / 12%);
}

.composition-balance-study {
  background: #e8ddca;
}

.composition-balance-study span {
  position: absolute;
  top: 30px;
  left: 24%;
  width: 83px;
  height: 83px;
  border-radius: 50%;
  background: #af795b;
}

.composition-balance-study::after {
  position: absolute;
  right: 10%;
  bottom: 37px;
  width: 43%;
  height: 5px;
  background: var(--forest-deep);
  content: "";
}

.editing-tonal-study {
  background: #d8d8c7;
}

.editing-tonal-study span {
  width: 78%;
  height: 102px;
  background: linear-gradient(
    90deg,
    #263c32 0% 20%,
    #53654f 20% 40%,
    #90987c 40% 60%,
    #c8c3a5 60% 80%,
    #f3e6c9 80% 100%
  );
}

.approach-section {
  display: grid;
  gap: 1.5rem;
}

.approach-section h2 {
  max-width: 24rem;
}

.approach-copy {
  max-width: 39rem;
}

.approach-copy p {
  color: #51594e;
}

.approach-copy p:first-child {
  font-size: 1.15rem;
}

.approach-copy .text-link {
  margin-top: 0.5rem;
}

/* Field guides and legal articles */
.article-header {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
}

.breadcrumb {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}

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

.article-header h1 {
  max-width: 62rem;
  font-size: clamp(2.8rem, 6.8vw, 5.6rem);
}

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

.article-header > .quiet {
  margin-top: 1.75rem;
  margin-bottom: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 2rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.69rem;
}

.article-layout {
  display: grid;
  align-items: start;
  gap: 3rem;
  padding-bottom: var(--section-space);
}

.article-body {
  min-width: 0;
  max-width: 47rem;
}

.article-body section + section {
  margin-top: 2.8rem;
}

.article-body h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.25;
}

.article-body p,
.article-body li {
  color: #485044;
  font-size: 1.025rem;
  line-height: 1.85;
}

.article-body a,
.contact-form-card p a,
.check-row a,
.preferences-dialog a:not(.button) {
  color: var(--terracotta);
}

.article-body a:hover,
.check-row a:hover {
  color: var(--forest-deep);
}

.article-body section > :last-child {
  margin-bottom: 0;
}

.article-aside {
  display: grid;
  align-content: start;
  gap: 2rem;
  min-width: 0;
}

.article-aside h2,
.contact-details h2 {
  font-size: 1.8rem;
}

.article-aside .eyebrow {
  margin-bottom: 1rem;
}

.spaced-list {
  margin-block: 1.5rem;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.spaced-list li {
  padding-left: 0.3rem;
}

.spaced-list li + li {
  margin-top: 0.9rem;
}

.spaced-list li::marker {
  color: var(--terracotta);
}

.accent-card > :last-child {
  margin-bottom: 0;
}

.aside-note {
  padding: 0.25rem 0.5rem;
}

.aside-note h2 {
  margin-bottom: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
}

.aside-note .text-link {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.82rem;
}

.next-guide h2 {
  max-width: 43rem;
  margin-bottom: 1.75rem;
}

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

.legal-page .article-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
}

.legal-body {
  max-width: 51rem;
}

.legal-body section + section {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.table-wrapper {
  max-width: 100%;
  margin-block: 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 0.85rem;
  line-height: 1.65;
  text-align: left;
}

caption {
  padding: 1rem 1.25rem;
  background: var(--surface);
  font-weight: 600;
  text-align: left;
}

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

thead th {
  background: var(--olive);
  font-weight: 600;
}

tbody th {
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background: #f1f1e8;
}

/* Contact form and illustrated map */
.contact-layout {
  display: grid;
  align-items: start;
  gap: 2rem;
  padding-bottom: var(--section-space);
}

.contact-form-card {
  background: var(--surface);
}

.contact-form-card > h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
}

.contact-form-card > p {
  color: var(--muted);
  font-size: 0.9rem;
}

form {
  margin-top: 2rem;
}

.form-row {
  display: grid;
  gap: 0 1.25rem;
}

.form-field {
  min-width: 0;
  margin-bottom: 1.5rem;
}

.form-field > label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.form-field label .quiet {
  font-size: 0.75rem;
  font-weight: 400;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border: 1px solid #a6ac9d;
  border-radius: var(--radius);
  background: #fffefb;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #70776b;
  opacity: 1;
}

input:not([type="checkbox"]):focus,
select:focus,
textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgb(52 75 61 / 10%);
}

[aria-invalid="true"] {
  border-color: var(--error) !important;
}

.field-hint,
.field-error {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
}

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

.check-row,
.form-field > .check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-block: 1rem;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.65;
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0.25rem 0 0;
  accent-color: var(--forest-deep);
  cursor: pointer;
}

input:disabled {
  cursor: not-allowed;
}

.status {
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--forest);
  font-size: 0.85rem;
  font-weight: 500;
}

.status:empty {
  display: none;
}

.notice,
.draft-result {
  padding: 1.25rem;
  border-left: 3px solid var(--terracotta);
  background: var(--sand);
  font-size: 0.9rem;
}

.draft-result {
  margin-top: 1.5rem;
  border-left-color: var(--forest);
  background: var(--olive);
}

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

.draft-result p {
  font-size: 0.9rem;
}

.contact-details {
  display: grid;
  gap: 1.75rem;
  min-width: 0;
}

.contact-details .accent-card > div {
  margin-block: 1.5rem;
}

.contact-details h3 {
  margin-bottom: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
}

.contact-details a,
.contact-details address {
  font-size: 0.9rem;
}

.contact-details a,
.footer-identity > a:last-child {
  overflow-wrap: anywhere;
}

.static-map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bristol-area-map-illustration {
  display: block;
  width: 100%;
  height: auto;
  background: #e6e5d9;
}

.static-map figcaption {
  display: grid;
  gap: 0.35rem;
  padding: 1.2rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.65;
}

.static-map figcaption strong {
  color: var(--ink);
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  background: var(--ink);
  color: #edece2;
}

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

.footer-identity {
  grid-column: 1 / -1;
  max-width: 31rem;
}

.footer-identity .brand {
  margin-bottom: 0.8rem;
}

.footer-identity p {
  margin-bottom: 1rem;
  color: #c3c8ba;
  font-size: 0.78rem;
  line-height: 1.8;
}

.footer-identity .brand + p {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.footer-identity .fine-print {
  color: #b4bcab;
  font-size: 0.72rem;
}

.footer-identity > a:last-child {
  font-size: 0.8rem;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.site-footer nav h2 {
  margin-bottom: 0.95rem;
  color: #f5f2eb;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer nav a,
.footer-preferences {
  display: inline-block;
  padding-block: 0.45rem;
  color: #cdd1c5;
  font-size: 0.82rem;
  line-height: 1.65;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer .footer-preferences:hover {
  color: var(--accent);
}

.site-footer nav a:hover,
.footer-preferences:hover {
  text-decoration: underline;
}

.site-footer :focus-visible {
  outline-color: var(--accent);
}

/* Privacy controls */
.cookie-banner {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  z-index: 40;
  display: grid;
  gap: 1.25rem;
  max-width: var(--page-width);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #b7bdad;
  border-top: 3px solid var(--forest);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.cookie-banner p {
  max-width: 43rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.cookie-banner a {
  color: var(--terracotta);
}

.cookie-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.cookie-actions .button {
  flex: 1 1 10rem;
  font-size: 0.78rem;
}

.cookie-actions .plain-button {
  flex: 1 0 100%;
  text-align: center;
}

.preferences-dialog {
  width: min(580px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.preferences-dialog::backdrop {
  background: rgb(23 33 26 / 65%);
  backdrop-filter: blur(3px);
}

.dialog-content {
  padding: clamp(1.4rem, 5vw, 2.5rem);
}

.dialog-content .eyebrow {
  margin-bottom: 0.85rem;
}

.dialog-content h2 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
}

.dialog-content > p:not(.eyebrow):not(.status) {
  color: var(--muted);
  font-size: 0.9rem;
}

.dialog-content .check-row {
  margin: 0;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.dialog-actions {
  margin-block: 1.5rem;
}

.dialog-content > a:last-child {
  font-size: 0.8rem;
}

/* Responsive layout */
@media (min-width: 480px) {
  .header-cta {
    display: inline-flex;
    min-height: 42px;
    margin-left: auto;
    padding: 0.6rem 0.9rem;
    font-size: 0.78rem;
  }

  .menu-toggle {
    margin-left: 0;
  }
}

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

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

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

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

  .aside-note {
    padding: 1.25rem;
  }

  .cookie-actions .plain-button {
    flex: 0 1 auto;
    padding-inline: 0.6rem;
  }

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

@media (min-width: 800px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 2rem;
    min-height: 88px;
    padding-block: 1.2rem;
  }

  .main-nav,
  .header-inner:has(.menu-toggle[aria-expanded]) .main-nav {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    justify-content: center;
    order: 0;
    gap: 1.75rem;
    margin-left: auto;
    padding: 0;
    border: 0;
  }

  .header-cta {
    margin-left: 0;
    padding: 0.65rem 1rem;
  }

  .menu-toggle {
    display: none;
  }

  .hero {
    grid-template-columns: 1.08fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
  }

  .hero h1 {
    font-size: clamp(3.4rem, 6.8vw, 5.8rem);
  }

  .hero-copy .lede {
    max-width: 30rem;
    font-size: 1.08rem;
  }

  .section-heading {
    grid-template-columns: 1.5fr 1fr;
    align-items: end;
    gap: 3rem;
    margin-bottom: 2.75rem;
  }

  .section-heading > p {
    justify-self: end;
  }

  .approach-section {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }

  .footer-inner {
    grid-template-columns: 1.75fr 0.8fr 0.9fr;
    gap: 3rem;
  }

  .footer-identity {
    grid-column: auto;
  }
}

@media (min-width: 1000px) {
  .guide-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .guide-card {
    grid-column: span 2;
    padding: 1.5rem;
  }

  .guide-card:nth-last-child(-n + 2) {
    grid-column: span 3;
  }

  .guide-card:nth-last-child(-n + 2) .visual-study {
    height: 190px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 2.1fr) minmax(270px, 1fr);
    gap: clamp(3rem, 6vw, 5.5rem);
  }

  .article-aside {
    position: sticky;
    top: 2rem;
    grid-template-columns: 1fr;
  }

  .article-aside .accent-card {
    padding: 1.75rem;
  }

  .aside-note {
    padding: 0.5rem;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
    gap: 2.5rem;
  }

  .contact-form-card {
    padding: 2.5rem;
  }

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

  .cookie-actions {
    justify-content: flex-end;
    max-width: 25rem;
  }

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

  .cookie-actions .plain-button {
    flex: 1 0 100%;
    min-height: 32px;
    padding-block: 0.2rem;
  }
}

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

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

@media (forced-colors: active) {
  .button,
  .header-cta,
  .accent-card,
  .cookie-banner,
  .preferences-dialog {
    border: 1px solid CanvasText;
  }

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

  .visual-study {
    forced-color-adjust: none;
  }
}

@media print {
  :root {
    --paper: #fff;
    --surface: #fff;
    --ink: #000;
    --muted: #444;
    --line: #ccc;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .skip-link,
  .site-header,
  .site-footer,
  .cookie-banner,
  .preferences-dialog,
  .menu-toggle,
  .next-guide,
  .cookie-actions,
  .dialog-actions,
  form button,
  [data-cookie-choice] {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    max-width: none;
  }

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

  .article-header,
  .section {
    padding-block: 1.5rem;
  }

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

  h2 {
    font-size: 24pt;
  }

  h3,
  .article-body h2 {
    font-size: 18pt;
  }

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

  p,
  li {
    orphans: 3;
    widows: 3;
  }

  .article-body,
  .legal-body {
    max-width: none;
  }

  .article-body p,
  .article-body li {
    font-size: 11pt;
    line-height: 1.65;
  }

  .article-aside {
    position: static;
    margin-top: 2rem;
  }

  .accent-card,
  .static-map,
  .hero-figure,
  tr {
    break-inside: avoid;
    box-shadow: none;
  }

  .hero-figure {
    max-width: 300px;
    margin-block: 1.5rem;
  }

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

  .guide-card,
  .guide-card:nth-last-child(-n + 2) {
    grid-column: auto;
  }

  .visual-study,
  .photography-landscape-illustration,
  .bristol-area-map-illustration {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .table-wrapper {
    overflow: visible;
  }

  table {
    min-width: 0;
    font-size: 9pt;
  }

  th,
  td {
    padding: 0.5rem;
  }

  a {
    color: #000 !important;
    text-decoration: underline;
  }

  .button {
    border-color: #000;
    background: #fff;
    color: #000;
  }
}