/*
 * KeithLock.com shared presentation layer
 *
 * The Ledger is the default identity.  Blueprint and Porch load after this
 * file and can replace the semantic tokens below without having to undo the
 * accessibility and responsive-layout foundations.
 */

:root {
  color-scheme: light;

  /* Ledger palette: every neutral has a cool, blue-biased cast. */
  --color-page: #f7f9fc;
  --color-page-deep: #e9eef4;
  --color-surface: #fdfdfe;
  --color-heading: #18222f;
  --color-text: #3c4a5a;
  --color-muted: #5d6b7c;
  --color-border: #d9e0e8;
  --color-rule: #aebdcd;
  --color-accent: #123e66;
  --color-accent-hover: #0d2f4f;
  --color-accent-soft: #e5edf5;
  --color-on-accent: #ffffff;
  --color-band: #0d2f4f;
  --color-band-text: #c3d3e3;
  --color-band-heading: #ffffff;
  --color-focus: #123e66;
  --color-selection: #dce8f3;

  /* Type tokens are intentionally replaceable by a theme layer. */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-label: var(--font-body);
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --weight-body: 400;
  --weight-strong: 700;
  --weight-heading: 700;
  --line-body: 1.65;
  --line-heading: 1.2;

  /* Layout and component geometry. */
  --layout-max: 44rem;
  --layout-narrow: 40rem;
  --text-measure: 37rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-space: clamp(2.75rem, 6vw, 4rem);
  --hero-space-top: clamp(3.25rem, 8vw, 5.5rem);
  --hero-space-bottom: clamp(3rem, 7vw, 4.5rem);
  --radius-small: 0.1875rem;
  --radius-medium: 0.25rem;
  --radius-large: 0.5rem;
  --radius-button: 0.25rem;
  --button-border-width: 1px;
  --surface-shadow: 0 1rem 2.5rem -1.8rem rgb(13 47 79 / 35%);

  --tip-widget-accent: #123e66;
}

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

html,
body {
  overflow-x: clip;
}

html {
  min-width: 0;
  background: var(--color-page);
  scroll-padding-top: 1.5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--weight-body);
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

main {
  display: block;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
[type="button"],
[type="submit"] {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--color-selection);
  color: var(--color-heading);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: var(--line-heading);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw + 1rem, 3.05rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.55rem, 1.9vw + 1rem, 1.95rem);
  letter-spacing: -0.008em;
}

h3 {
  font-size: 1.2rem;
}

p,
dl,
ol,
ul {
  margin-top: 0;
}

p {
  margin-bottom: 1rem;
}

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

strong {
  color: var(--color-heading);
  font-weight: var(--weight-strong);
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-small);
}

[id] {
  scroll-margin-top: 1.5rem;
}

.wrap {
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap.narrow,
.narrow {
  --layout-max: var(--layout-narrow);
}

.small,
.microcopy {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* The skip link stays out of flow until keyboard focus reveals it. */
.skip-link {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2000;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-small);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: var(--weight-strong);
  text-decoration: none;
  transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus,
.skip-link:focus-visible {
  color: var(--color-on-accent);
  outline-color: var(--color-on-accent);
  transform: translateY(0);
}

/* Header */
.site-head {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-page);
}

.site-head .header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
  padding-block: 1.1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: var(--weight-heading);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  --brand-mark-bg: var(--color-accent);
  --brand-mark-ink: #ffffff;
  display: block;
  width: 1.3rem;
  height: 1.3rem;
  flex: 0 0 auto;
  color: var(--color-accent);
}

.wordmark:hover {
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.site-nav a {
  padding-block: 0.2rem;
  color: var(--color-muted);
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--color-accent);
}

.site-nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.presence-shell {
  border-top: 1px solid color-mix(in srgb, var(--color-border) 72%, transparent);
  background: color-mix(in srgb, var(--color-surface) 68%, var(--color-page));
}

.presence-wrap {
  --layout-max: 56rem;
  display: grid;
  grid-template-columns: auto minmax(0, 46rem);
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding-block: 0.72rem;
}

.presence-label {
  margin: 0;
  color: var(--color-muted);
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.presence-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  background: var(--color-surface);
  list-style: none;
  overflow: hidden;
}

.presence-item {
  position: relative;
  min-width: 0;
  box-shadow: inset 0 3px 0 color-mix(in srgb, var(--color-border) 58%, var(--color-surface));
}

.presence-item + .presence-item {
  border-left: 1px solid var(--color-border);
}

.presence-item.is-current {
  background: color-mix(in srgb, var(--color-accent-soft) 72%, var(--color-surface));
  box-shadow: inset 0 3px 0 var(--color-accent);
}

.presence-option {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  align-items: center;
  gap: 0.48rem;
  min-height: 3.35rem;
  padding: 0.58rem 0.7rem;
  color: var(--color-muted);
  font-family: var(--font-label);
  font-size: 0.76rem;
  line-height: 1.2;
  text-decoration: none;
}

.presence-item.is-current .presence-option {
  color: var(--color-heading);
}

.presence-option--link {
  color: var(--color-heading);
  transition: background-color 160ms ease, color 160ms ease;
}

.presence-option--link:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.presence-icon {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  color: var(--color-muted);
}

.presence-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.presence-icon circle {
  fill: currentColor;
  stroke: none;
}

.presence-item.is-current .presence-icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.18rem;
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: 0 0 0 0.22rem color-mix(in srgb, var(--color-accent) 12%, transparent);
}

.presence-name {
  min-width: 0;
  overflow-wrap: normal;
  white-space: nowrap;
}

.presence-copy {
  display: grid;
  min-width: 0;
  gap: 0.14rem;
}

.presence-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}

.presence-item.is-current .presence-name {
  color: var(--color-heading);
  font-weight: 700;
}

.presence-current {
  color: var(--color-accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.presence-current[hidden] {
  display: none;
}

.presence-gallery {
  color: var(--color-accent);
  font-size: 0.65rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  white-space: nowrap;
}

/* Hero */
.hero {
  padding-block: var(--hero-space-top) var(--hero-space-bottom);
}

.hero-inner {
  position: relative;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--color-muted);
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-emphasis {
  color: var(--hero-emphasis-color, inherit);
}

.hero-copy {
  max-width: 38rem;
  margin-top: 1.35rem;
  font-size: 1.08rem;
}

.hero-copy p {
  margin: 0;
}

.hero-copy p + p {
  margin-top: 0.85rem;
}

/* Buttons are mobile-first and become an inline row above 40em. */
.button-row {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border: var(--button-border-width) solid transparent;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.button-primary:hover {
  border-color: var(--color-accent-hover);
  background: var(--color-accent-hover);
  color: var(--color-on-accent);
}

.button-secondary {
  border-color: var(--color-rule);
  background: transparent;
  color: var(--color-accent);
}

.button-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

/* Ruled sections, like entries on a restrained ledger page. */
.section > .wrap {
  padding-block: var(--section-space);
  border-top: 1px solid var(--color-border);
}

.section-lead {
  max-width: 36rem;
}

/* How it works */
.start-paths {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.start-path {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.start-path strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-heading);
}

.start-path a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--color-border);
}

.steps li:last-child {
  border-bottom: 1px solid var(--color-border);
}

.steps p {
  margin: 0;
}

.step-number {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-heading);
  line-height: 1.25;
}

.step-number::after {
  content: ".";
}

.text-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 600;
}

/* Pricing: two options, followed by a separately ruled upgrade group. */
.price-options {
  margin-top: 2.25rem;
  border-top: 1px solid var(--color-rule);
}

.price-options,
.price-upgrades {
  width: 100%;
}

.price-upgrades {
  border-top: 3px double var(--color-rule);
  border-bottom: 3px double var(--color-rule);
}

.price-block {
  padding-block: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.price-options .price-block:first-child,
.price-upgrades .price-block:first-child {
  border-top: 0;
}

.price-heading {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(1.25rem, 1fr) minmax(min-content, max-content);
  align-items: end;
  gap: 0.7rem;
}

.price-heading::before {
  content: "";
  grid-column: 2;
  align-self: end;
  margin-bottom: 0.44rem;
  border-bottom: 1px dotted var(--color-rule);
}

.price-heading > div {
  grid-column: 1;
  min-width: 0;
}

.price-heading > .price {
  grid-column: 3;
}

.price-kind {
  margin: 0 0 0.3rem;
  color: var(--color-muted);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.price {
  min-width: 0;
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-heading);
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.price-unit {
  display: block;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
}

.geo-price {
  display: block;
  max-width: 16rem;
  margin-top: 0.3rem;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
}

.price-block > p {
  max-width: var(--text-measure);
  margin-top: 0.85rem;
}

.value-comparison {
  margin-block: 2rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--color-rule);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
}

.value-comparison > h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.25rem, 1.5vw + 0.9rem, 1.55rem);
}

.value-comparison > p {
  max-width: var(--text-measure);
}

.comparison-list {
  margin: 1.35rem 0 0;
}

.comparison-item {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--color-border);
}

.comparison-item dt {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: var(--line-heading);
}

.comparison-item dd {
  margin: 0;
  font-size: 0.9rem;
}

.comparison-item dd strong {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-close {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 3px double var(--color-rule);
  color: var(--color-heading);
  font-weight: 600;
}

.trust-block {
  max-width: var(--text-measure);
  margin-top: 1.75rem;
  font-size: 0.93rem;
}

.trust-block .microcopy {
  margin-top: 0.6rem;
  font-size: 0.86rem;
}

/* Receptionist and existing-client notes */
.section-editor .narrow > p:not(.ai-cost) {
  max-width: var(--text-measure);
}

.ai-cost {
  max-width: var(--text-measure);
  margin-top: 0.8rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.client-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.client-list li {
  padding-block: 1.05rem;
  border-top: 1px solid var(--color-border);
}

.client-list li:last-child {
  border-bottom: 1px solid var(--color-border);
}

/* FAQ is emitted as a dl so the visible text and JSON-LD share one source. */
.faq-list {
  margin: 0;
}

.faq-item {
  padding-block: 1.35rem;
  border-top: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.faq-item dt {
  margin: 0 0 0.55rem;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: var(--weight-heading);
  line-height: var(--line-heading);
  text-wrap: balance;
}

.faq-item dd {
  max-width: var(--text-measure);
  margin: 0;
}

/* The widget owns its internal styling; themes supply only its public accent. */
.tip-section {
  border-block: 1px solid var(--color-border);
  background: var(--color-page-deep);
}

.tip-section > .wrap {
  border-top: 0;
}

#tip-widget {
  --tipw-accent: var(--tip-widget-accent, #123e66);
}

/* Closing band */
.contact-band {
  background: var(--color-band);
  color: var(--color-band-text);
}

.contact-band .wrap {
  padding-block: var(--section-space);
}

.contact-band h2 {
  color: var(--color-band-heading);
}

.contact-band p {
  max-width: 32rem;
}

.contact-band .contact-verification-note {
  max-width: 46rem;
  margin-top: 1.25rem;
}

.contact-band .contact-step h3 {
  color: var(--color-band-heading);
  font-size: 1.25rem;
}

.contact-verified-panel {
  max-width: 38rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 42%);
  border-left: 4px solid #ffffff;
  border-radius: var(--radius-small);
  background: rgb(255 255 255 / 9%);
}

.contact-verified-panel h3 {
  margin: 0;
}

.contact-band .contact-verified-address {
  display: grid;
  gap: 0.3rem;
  max-width: none;
  margin: 0.55rem 0 0;
}

.contact-verified-address span {
  color: var(--color-band-text);
}

.contact-verified-address strong {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: var(--radius-small);
  background: rgb(255 255 255 / 12%);
  color: #ffffff;
  overflow-wrap: anywhere;
}

.contact-band .contact-form {
  max-width: 46rem;
  margin-top: 1.75rem;
}

.contact-form-grid {
  display: grid;
  gap: 0 1rem;
}

.contact-verification-grid {
  grid-template-columns: minmax(0, 1fr) 7.5rem 4.5rem;
  align-items: start;
}

.contact-field-label {
  display: block;
  margin-bottom: 0.35rem;
  color: #ffffff;
  font-weight: 600;
}

.contact-check-question {
  display: block;
  width: 7.5rem;
  height: calc(1lh + 1.4rem + 2px);
  padding: 0.7rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 0.2rem;
  background: #f6f1e7;
  color: #16233b;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.contact-answer-field {
  width: 4.5rem;
}

.contact-answer-field input,
.contact-code-field input {
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.contact-code-field {
  max-width: 12rem;
}

#contact-code-email {
  display: inline;
  padding: 0.08em 0.35em;
  border-radius: 0.2rem;
  background: rgb(255 255 255 / 14%);
  color: var(--color-band-heading);
  overflow-wrap: anywhere;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.contact-band .contact-form label {
  color: #ffffff;
}

.contact-band .contact-form :where(input:not([type="hidden"]), textarea) {
  border-color: rgb(255 255 255 / 55%);
  background: var(--color-on-accent);
  color: var(--color-heading);
}

.contact-band .contact-form :where(input:not([type="hidden"]), textarea):focus {
  border-color: var(--color-on-accent);
  outline: 3px solid rgb(255 255 255 / 28%);
  outline-offset: 2px;
}

.contact-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0;
}

.contact-band .contact-privacy {
  max-width: 38rem;
  margin: -0.2rem 0 1.2rem;
  color: var(--color-band-text);
  font-size: 0.82rem;
}

.contact-band .contact-privacy a {
  color: #ffffff;
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.contact-form .button-light {
  margin-top: 0;
}

.contact-form .button-light:disabled {
  cursor: wait;
  opacity: 0.72;
}

.contact-screening-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .button-quiet {
  border-color: rgb(255 255 255 / 62%);
  background: transparent;
  color: #ffffff;
}

.contact-form .button-quiet:hover {
  border-color: #ffffff;
  background: rgb(255 255 255 / 12%);
  color: #ffffff;
}

.contact-status {
  max-width: 46rem;
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 48%);
  border-left: 4px solid var(--color-on-accent);
  background: rgb(0 0 0 / 16%);
  color: var(--color-band-heading);
}

.contact-status.is-error {
  border-left-color: #ffd1c7;
}

.button-light {
  width: auto;
  margin-top: 0.35rem;
  border-color: var(--color-on-accent);
  background: var(--color-on-accent);
  color: var(--color-band);
}

.button-light:hover {
  border-color: var(--color-page-deep);
  background: var(--color-page-deep);
  color: var(--color-band);
}

.contact-band :where(a, button):focus-visible {
  outline-color: var(--color-on-accent);
}

/* Footer */
.site-foot {
  padding-block: 2.25rem;
  background: var(--color-page);
}

.site-foot .wrap {
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.site-foot p {
  margin: 0 0 0.35rem;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.footer-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-identity .brand-mark {
  width: 1.1rem;
  height: 1.1rem;
}

.site-foot a {
  color: var(--color-accent);
}

.foot-links {
  margin-top: 0.6rem;
}

/* Shared standalone-page and form primitives. */
.page-header,
.page-section,
.content-page {
  padding-block: var(--section-space);
}

.page-header + .page-section,
.page-header + .content-page {
  padding-top: 0;
}

.page-lead,
.prose {
  max-width: var(--text-measure);
}

/* Human-only fishing gallery. */
.fishing-intro {
  padding-block: clamp(3rem, 7vw, 5.25rem) clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.fishing-intro .wrap {
  display: grid;
  justify-items: center;
}

.fishing-intro h1 {
  max-width: 18ch;
}

.fishing-intro .page-lead {
  margin-top: 1.1rem;
  color: var(--color-muted);
  text-wrap: balance;
}

.fishing-section {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.fishing-section > .wrap {
  --layout-max: 66rem;
}

.fishing-back {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin-bottom: 1.25rem;
  color: var(--color-muted);
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.fishing-back:hover {
  color: var(--color-accent);
}

.fishing-folder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
}

.fishing-folder-grid + .fishing-gallery {
  margin-top: clamp(2.4rem, 5vw, 4rem);
}

.fishing-folder-card {
  min-width: 0;
}

.fishing-folder-link {
  display: grid;
  grid-template-rows: 12rem minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  box-shadow: var(--surface-shadow);
  color: var(--color-text);
  text-decoration: none;
}

.fishing-folder-art {
  position: relative;
  height: 12rem;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 50% 15%, color-mix(in srgb, var(--color-accent-soft) 72%, transparent), transparent 58%),
    var(--color-page-deep);
}

.fishing-folder-preview {
  position: absolute;
  top: 1rem;
  width: 58%;
  overflow: hidden;
  border: 0.28rem solid var(--color-surface);
  border-radius: 0.35rem;
  background: var(--color-surface);
  box-shadow: 0 0.55rem 1.2rem rgb(19 39 56 / 22%);
  transition: transform 260ms cubic-bezier(.2, .7, .2, 1);
}

.fishing-folder-preview:first-child {
  left: 8%;
  transform: rotate(-5deg);
}

.fishing-folder-preview:nth-child(2) {
  right: 8%;
  transform: rotate(5deg);
}

/* The folder art is a folder, not a photo viewer: previews keep one shape so
   every card matches, and only their top edge shows above the folder front.
   Anchoring the crop low puts the catch in that sliver instead of the sky. */
.fishing-folder-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 100%;
}

.fishing-folder-front {
  --folder-fill: color-mix(in srgb, var(--color-accent) 72%, #d8a84e);
  position: absolute;
  right: 0.85rem;
  bottom: 0.75rem;
  left: 0.85rem;
  height: 6.55rem;
  border: 1px solid color-mix(in srgb, var(--folder-fill) 75%, #5d461e);
  border-radius: 0 0.55rem 0.55rem;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 24%), transparent 42%),
    var(--folder-fill);
  box-shadow: 0 0.65rem 1.15rem rgb(19 39 56 / 24%);
  transition: transform 260ms cubic-bezier(.2, .7, .2, 1);
}

.fishing-folder-front::before {
  position: absolute;
  top: -1.45rem;
  left: -1px;
  width: 45%;
  height: 1.6rem;
  border: 1px solid color-mix(in srgb, var(--folder-fill) 75%, #5d461e);
  border-bottom: 0;
  border-radius: 0.55rem 0.75rem 0 0;
  background: var(--folder-fill);
  clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%);
  content: "";
}

.fishing-folder-link:hover .fishing-folder-preview:first-child,
.fishing-folder-link:focus-visible .fishing-folder-preview:first-child {
  transform: translateY(-0.42rem) rotate(-7deg);
}

.fishing-folder-link:hover .fishing-folder-preview:nth-child(2),
.fishing-folder-link:focus-visible .fishing-folder-preview:nth-child(2) {
  transform: translateY(-0.42rem) rotate(7deg);
}

.fishing-folder-link:hover .fishing-folder-front,
.fishing-folder-link:focus-visible .fishing-folder-front {
  transform: translateY(0.16rem);
}

/* Fixed count-to-title gap, CTA pinned to the card bottom; the flexible
   space lives between title and CTA, and live metadata centers in it. */
.fishing-folder-copy {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem 1.15rem;
}

.fishing-folder-count {
  margin-bottom: 0.42rem;
}

.fishing-folder-copy h2 {
  margin: 0 0 0.42rem;
  font-size: clamp(1.1rem, 0.98rem + 0.5vw, 1.35rem);
}

.fishing-folder-count,
.fishing-folder-open {
  color: var(--color-muted);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fishing-folder-open {
  margin-top: auto;
  padding-top: 0.15rem;
  color: var(--color-accent);
}

.fishing-coming-soon {
  max-width: 34rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  box-shadow: var(--surface-shadow);
  text-align: center;
}

.fishing-coming-soon .eyebrow {
  margin-bottom: 0.7rem;
  color: var(--color-accent);
}

.fishing-coming-soon p:last-child {
  margin: 0;
  color: var(--color-muted);
  text-wrap: balance;
}

/* Photos keep their own shape, so cards sit at the top of their row and each
   one ends under its own picture rather than being stretched to match a
   taller neighbour. */
.fishing-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 2.4vw, 1.6rem);
}

.fishing-card {
  display: grid;
  grid-template-rows: auto minmax(2.9rem, auto);
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  box-shadow: var(--surface-shadow);
}

.fishing-card picture {
  display: block;
  overflow: hidden;
  background: var(--color-page-deep);
}

/* Never crop here: the whole frame is the point, and a portrait photo forced
   into a landscape box loses the fish along the bottom edge. */
.fishing-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 500ms cubic-bezier(.2, .7, .2, 1);
}

.fishing-card:hover img {
  transform: scale(1.018);
}

.fishing-date {
  display: flex;
  min-height: 2.9rem;
  align-items: center;
  padding: 0.72rem 0.9rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fishing-date:empty::before {
  content: "";
}

/* Live catch metadata: filled in by main.js from absolute catch times and
   emptied once a catch is more than four hours old. */
.fishing-caught {
  color: var(--color-muted);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.fishing-caught:empty {
  display: none;
}

.fishing-folder-lastcatch {
  margin-top: auto;
  font-family: var(--font-label);
  font-size: 0.74rem;
}

/* The latest line keeps its slot even while empty (before JS fills it and
   after the four-hour expiry), so nothing shifts. */
.fishing-folder-lastcatch:empty {
  display: block;
  min-height: 1.2em;
}

.breadcrumbs {
  margin-bottom: 1.5rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.3rem;
  color: var(--color-rule);
}

main form:not(.theme-form) {
  max-width: var(--text-measure);
  margin-top: 1.75rem;
}

main form:not(.theme-form) fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

main form:not(.theme-form) label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-heading);
  font-weight: 600;
}

main form:not(.theme-form) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-small);
  background: var(--color-surface);
  color: var(--color-heading);
}

main form:not(.theme-form) textarea {
  min-height: 9rem;
  resize: vertical;
}

main form:not(.theme-form) :where(input, select, textarea)::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

.form-field,
.field {
  margin-bottom: 1.25rem;
}

.field-help,
.form-help {
  margin-top: 0.35rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.form-actions {
  margin-top: 1.5rem;
}

.form-status,
.status-message {
  max-width: var(--text-measure);
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
}

/* Theme-specific decorative fragments stay out of every other identity. */
.only-blueprint,
.only-porch {
  display: none;
}

:root[data-theme="blueprint"] .only-blueprint,
:root[data-theme="porch"] .only-porch {
  display: block;
}

/*
 * Theme picker: this is deliberately the site's only fixed-position feature.
 * Its panel opens inward and is viewport-constrained at large text sizes.
 */
.theme-picker {
  --picker-bg: #ffffff;
  --picker-page: #f7f9fc;
  --picker-text: #18222f;
  --picker-muted: #5d6b7c;
  --picker-border: #aebdcd;
  --picker-border-soft: #d9e0e8;
  --picker-accent: #123e66;
  --picker-accent-soft: #e5edf5;
  position: fixed;
  top: 50%;
  right: 0.5rem;
  bottom: auto;
  z-index: 1500;
  color: var(--picker-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  transform: translateY(-50%);
}

.theme-toggle,
.theme-close {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--picker-border);
  background: var(--picker-bg);
  color: var(--picker-text);
  font-weight: 700;
}

.theme-toggle {
  display: block;
  margin-left: auto;
  padding: 0.85rem 0.65rem;
  border-radius: 0.25rem;
  box-shadow: var(--surface-shadow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.theme-toggle:hover,
.theme-toggle[aria-expanded="true"] {
  border-color: var(--picker-accent);
  color: var(--picker-accent);
}

.theme-panel {
  position: absolute;
  top: 50%;
  right: calc(100% + 0.6rem);
  bottom: auto;
  width: min(20rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - 5.25rem);
  max-height: calc(100dvh - 5.25rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  border: 1px solid var(--picker-border);
  border-radius: 0.5rem;
  background: var(--picker-bg);
  box-shadow: 0 1.25rem 3.5rem -1.5rem rgb(13 47 79 / 45%);
  transform: translateY(-50%);
}

.theme-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.theme-panel-head h2 {
  margin: 0;
  color: var(--picker-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}

.theme-close {
  min-width: 0;
  min-height: 2.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.1875rem;
  background: transparent;
  font-size: 0.8rem;
}

.theme-close:hover {
  border-color: var(--picker-accent);
  color: var(--picker-accent);
}

.theme-form,
.theme-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.theme-choice {
  display: grid;
  grid-template-columns: auto 3.6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius-medium);
  cursor: pointer;
}

.theme-choice + .theme-choice {
  margin-top: 0.35rem;
}

.theme-choice:hover,
.theme-choice:focus-within {
  border-color: var(--picker-border-soft);
  background: var(--picker-page);
}

.theme-choice:has(input:checked) {
  border-color: var(--picker-accent);
  background: var(--picker-accent-soft);
}

.theme-choice input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--picker-accent);
}

.theme-swatch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 3.6rem;
  height: 2rem;
  overflow: hidden;
  border: 1px solid rgb(24 34 47 / 20%);
  border-radius: var(--radius-small);
}

.theme-swatch i {
  display: block;
}

.theme-choice[data-theme-choice="ledger"] .theme-swatch i:nth-child(1) {
  background: #f7f9fc;
}

.theme-choice[data-theme-choice="ledger"] .theme-swatch i:nth-child(2) {
  background: #123e66;
}

.theme-choice[data-theme-choice="ledger"] .theme-swatch i:nth-child(3) {
  background: #18222f;
}

.theme-choice[data-theme-choice="blueprint"] .theme-swatch i:nth-child(1) {
  background: #eef1f5;
}

.theme-choice[data-theme-choice="blueprint"] .theme-swatch i:nth-child(2) {
  background: #1a56b0;
}

.theme-choice[data-theme-choice="blueprint"] .theme-swatch i:nth-child(3) {
  background: #171e28;
}

.theme-choice[data-theme-choice="porch"] .theme-swatch i:nth-child(1) {
  background: #f4f1e6;
}

.theme-choice[data-theme-choice="porch"] .theme-swatch i:nth-child(2) {
  background: #1e5741;
}

.theme-choice[data-theme-choice="porch"] .theme-swatch i:nth-child(3) {
  background: #2a2720;
}

.theme-choice-copy {
  min-width: 0;
}

.theme-choice-copy strong,
.theme-choice-copy small {
  display: block;
}

.theme-note {
  margin: 0.7rem 0.35rem 0;
  color: var(--picker-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

/* Privacy page */
.privacy-updated {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 0.88rem;
}

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

.privacy-copy h2 {
  margin-top: 2.4rem;
}

.privacy-copy h2:first-child {
  margin-top: 0;
}

.privacy-copy p {
  max-width: var(--text-measure);
}

.privacy-copy code {
  padding: 0.1em 0.3em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-page-deep);
  color: var(--color-heading);
  font-size: 0.92em;
}

.theme-choice-copy strong {
  color: var(--picker-text);
  font-size: 0.88rem;
  line-height: 1.25;
}

.theme-choice-copy small {
  margin-top: 0.12rem;
  color: var(--picker-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

@media (min-width: 40.0625em) {
  .button-row {
    flex-direction: row;
    align-items: center;
  }

  .button-row .button,
  .button {
    width: auto;
  }

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

  .contact-verification-grid {
    grid-template-columns: minmax(0, 1fr) 7.5rem 4.5rem;
  }

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

@media (max-width: 50em) {
  .presence-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .presence-item + .presence-item {
    border-left: 0;
  }

  .presence-item:nth-child(even) {
    border-left: 1px solid var(--color-border);
  }

  .presence-item:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
  }
}

@media (max-width: 40em) {
  .contact-verification-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 0.75rem;
  }

  .contact-verification-grid > :first-child {
    flex: 0 0 100%;
  }

  .contact-verification-grid .contact-quick-check {
    flex: 0 0 7.5rem;
  }

  .contact-verification-grid .contact-answer-field {
    flex: 0 0 4.5rem;
  }

  .site-nav {
    width: 100%;
  }

  .presence-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }

  .presence-label {
    padding-inline: 0.1rem;
  }

  .presence-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .presence-item + .presence-item {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .presence-item.is-current {
    box-shadow: inset 3px 0 0 var(--color-accent);
  }

  .presence-item:not(.is-current) {
    box-shadow: inset 3px 0 0 color-mix(in srgb, var(--color-border) 58%, var(--color-surface));
  }

  .presence-option,
  .presence-item.is-current .presence-option,
  .presence-option--link {
    grid-template-columns: 1.45rem minmax(0, 1fr);
    min-height: 3rem;
  }

  .fishing-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .fishing-folder-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .comparison-item {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 64em) {
  .site-head .header-main {
    position: relative;
  }

  .wordmark {
    order: 1;
  }

  .theme-picker {
    order: 2;
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    margin-left: auto;
    transform: none;
  }

  .theme-toggle {
    width: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border: 1px solid var(--picker-border-soft);
    border-radius: 0.25rem;
    background: transparent;
    font-size: 0;
    letter-spacing: 0;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .theme-toggle::before {
    display: block;
    width: 1.2rem;
    height: 0.9rem;
    margin: auto;
    border: 1px solid var(--picker-border);
    border-radius: 0.18rem;
    background: linear-gradient(90deg, #123e66 0 33.333%, #1a56b0 33.333% 66.666%, #1e5741 66.666% 100%);
    content: "";
  }

  .theme-panel {
    top: calc(100% + 0.5rem);
    right: 0;
    bottom: auto;
    width: min(20rem, calc(100vw - 3rem));
    max-height: calc(100vh - 6rem);
    max-height: calc(100dvh - 6rem);
    transform: none;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }
}

@media (min-width: 64.01em) {
  .fishing-gallery,
  .fishing-folder-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 21.5em) {
  .price-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .price-heading::before {
    display: none;
  }

  .price-heading > div,
  .price-heading > .price {
    grid-column: 1;
  }

  .price-heading > .price {
    margin-top: 0.45rem;
    text-align: left;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .skip-link,
  .button,
  .theme-toggle,
  .theme-close,
  .theme-choice {
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
