:root {
  color-scheme: light;
  --ink: #193332;
  --muted: #4e6562;
  --accent: #126963;
  --line: #d5e2de;
  --paper: #f5f8f5;
  font-family: system-ui, "Hiragino Sans", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.7; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #b4651a; outline-offset: 3px;
}
.wrap { width: min(100% - 2rem, 62rem); margin-inline: auto; }
header {
  background:
    repeating-linear-gradient(-45deg, #171717 0 11px, #ffdf42 11px 22px) top / 100% 7px no-repeat,
    repeating-linear-gradient(-45deg, #171717 0 11px, #ffdf42 11px 22px) bottom / 100% 7px no-repeat,
    #ffdf42;
  border-bottom: 1px solid #171717;
  padding-block: 7px;
}
.head nav a { color: #193332; }
.head a:focus-visible { outline-color: #171717; }
.head, footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-block: 1rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  font-weight: 850;
  text-decoration: none;
  color: #b51524;
}
.brand-sign { flex: none; width: clamp(3.65rem, 12vw, 5.75rem); height: auto; border-radius: .25rem; }
.head nav { flex-wrap: wrap; }
nav { display: flex; gap: 1rem; }
main { min-height: 70vh; padding-block: 2rem 4rem; }
h1, h2 { line-height: 1.35; margin: 0 0 .65em; }
h1 { font-size: clamp(1.75rem, 5vw, 3.1rem); letter-spacing: -.025em; }
h2 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.hero {
  position: relative;
  overflow: hidden;
  background: #ffdf42;
  color: #171717;
  padding: clamp(2.25rem, 5vw, 4rem) clamp(1.35rem, 5vw, 4rem);
  border: 2px solid #171717;
  border-radius: 1.25rem;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    #171717 0 11px,
    #ffdf42 11px 22px
  );
  pointer-events: none;
}
.hero::before { top: 0; }
.hero::after { bottom: 0; }
.button.post-button { background: #b51524; color: #fff; }
.button.post-button:hover { background: #90111c; }
.hero p { max-width: 38rem; margin-bottom: 1.5rem; }
.button, button {
  display: inline-block; background: var(--accent); color: white; border: 0; border-radius: .55rem;
  padding: .7rem 1.05rem; min-height: 44px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.button:hover, button:hover { background: #0d504a; }
.secondary { margin-bottom: 1rem; }
.cards, .case-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 17rem),1fr)); gap: 1rem; margin-top: 1rem; }
.cards section, .case-list article, .panel {
  padding: clamp(1rem, 3vw, 1.6rem); background: white; border: 1px solid var(--line); border-radius: .85rem;
}
.panel { max-width: 48rem; margin-bottom: 1.25rem; }
label { display: block; font-weight: 650; margin-bottom: 1rem; }
label small { display: block; color: var(--muted); font-weight: 400; }
input:not([type=checkbox]), textarea, select {
  display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: .3rem; padding: .55rem;
  border: 1px solid #829c97; border-radius: .35rem; font: inherit; color: inherit; background: white;
}
textarea { min-height: 8rem; resize: vertical; }
.check { display: flex; gap: .5rem; align-items: baseline; }
.callout, .alert { padding: .8rem 1rem; background: #fff1d9; border-radius: .5rem; }
.badge { display: inline-block; margin-bottom: .5rem; background: #dbeee7; padding: .1rem .55rem; border-radius: .4rem; font-size: .9rem; }
img { max-width: 100%; height: auto; border-radius: .45rem; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline { list-style: none; padding-left: 1rem; border-left: 3px solid #b9d8ce; }
.timeline li { margin-bottom: 1.1rem; }
.timeline time { color: var(--muted); margin-right: .75rem; }
footer { border-top: 1px solid var(--line); font-size: .9rem; }

.photo-review { margin-bottom: 1rem; }
.photo-review img { max-height: 20rem; object-fit: contain; }

.hero-with-portrait {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(9rem, 21vw, 14rem);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
}
.hero-person { margin: 0; text-align: center; }
.hero-person figcaption { margin-top: .55rem; font-weight: 800; }
.hero-portrait {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 620px) {
  .hero-with-portrait { grid-template-columns: minmax(0, 1fr); }
  .hero-portrait { width: min(100%, 10rem); margin-inline: auto; }
}

.report-examples { margin-top: 2rem; }
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: .8rem;
  padding: 0;
  list-style: none;
}
.example-grid li {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: white;
  text-align: center;
  font-weight: 700;
}
.example-grid li > span:last-child { display: block; padding: .65rem .45rem; }
.example-picture {
  display: block;
  aspect-ratio: 4 / 5;
  background: #fbf2dc url("report-examples.webp") 0% 78% / 500% auto no-repeat;
}
.example-grid li:nth-child(2) .example-picture { background-position-x: 25%; }
.example-grid li:nth-child(3) .example-picture { background-position-x: 50%; }
.example-grid li:nth-child(4) .example-picture { background-position-x: 75%; }
.example-grid li:nth-child(5) .example-picture { background-position-x: 100%; }

.consult-examples .example-picture {
  aspect-ratio: 4 / 5;
  background-image: url("consult-examples.webp");
  background-position-y: center;
}

.urgent-contacts { max-width: none; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.urgent-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.3rem, 2vw, .75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.urgent-contact-grid li {
  border: 1px solid var(--line);
  border-radius: .55rem;
  padding: .5rem clamp(.35rem, 2vw, .8rem);
  overflow-wrap: anywhere;
}
.urgent-contact-grid span { display: block; font-weight: 700; }
.urgent-contact-grid a { display: inline-block; padding-block: .3rem; }

@media (max-width: 520px) {
  .urgent-contact-grid li { padding-inline: .25rem; font-size: .75rem; }
}
.urgent-contact-grid a { white-space: nowrap; }
