:root {
  color-scheme: light;
  --ink: #222627;
  --navy: #263a45;
  --paper: #f7f8f5;
  --stone: #e0e4df;
  --rule: #a6afaa;
  --seal: #783b43;
  font: 100%/1.55 Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #126285; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); padding: .6rem; background: white; z-index: 1; }
.skip:focus { transform: none; }
.shell { width: min(100% - 3rem, 78rem); margin-inline: auto; }
.masthead { border-top: 7px solid var(--navy); border-bottom: 1px solid var(--rule); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font: bold 1.38rem/1.12 Georgia, serif; }
.brand small { display: block; margin-top: .25rem; font: .73rem Arial, sans-serif; }
.mark { width: 35px; height: 35px; display: grid; align-items: end; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 6px; background: var(--navy); }
.mark i { background: var(--paper); height: 50%; }
.mark i:nth-child(2) { height: 72%; }
.mark i:nth-child(3) { height: 100%; }
nav { display: flex; gap: clamp(.9rem, 3vw, 3rem); }
nav a { display: block; padding: 1.75rem 0 1.5rem; text-decoration: none; border-bottom: 3px solid transparent; }
nav a:hover { text-decoration: underline; }
nav [aria-current] { border-color: var(--seal); font-weight: bold; }
h1, h2 { font-family: Georgia, serif; font-weight: normal; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.45rem, 5.35vw, 5.4rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.45rem); letter-spacing: -.025em; }
p { max-width: 62ch; }
.hero { display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2rem, 5vw, 5.1rem); }
.hero h1 { font-size: clamp(2.45rem, 4.4vw, 4.6rem); }
.location { color: var(--seal); font-size: .875rem; margin: 0 0 1rem; }
.intro > p:not(.location) { max-width: 45ch; margin: 1.45rem 0 1.75rem; }
.button { display: inline-block; padding: .75rem 1.05rem; border: 1px solid var(--navy); background: var(--navy); color: white; font-weight: bold; font-size: .94rem; cursor: pointer; text-decoration: none; }
.button:hover { background: #364e5c; }
figure { margin: 0; }
figure img { display: block; width: 100%; aspect-ratio: 1.23; object-fit: cover; object-position: 50% 45%; background: var(--stone); }
figcaption { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px solid var(--rule); font-size: .83rem; padding: .65rem 0; }
.services { background: var(--stone); border-block: 1px solid var(--rule); }
.services-inner { display: grid; grid-template-columns: 1fr 1.45fr; gap: clamp(1rem, 6vw, 6rem); padding-block: clamp(2rem, 4vw, 4rem); }
dl { margin: 0; }
dl div { display: grid; grid-template-columns: minmax(7rem, 1fr) 1.5fr; gap: .65rem; padding: .62rem 0; border-bottom: 1px solid var(--rule); }
dl div:first-child { border-top: 1px solid var(--rule); }
dt { font-weight: bold; }
dd { margin: 0; }
footer { padding-block: 1.35rem; font-size: .85rem; }
.footer-inner > :first-child { font-weight: bold; }
.page-head { background: var(--stone); padding-block: clamp(2rem, 5vw, 4.5rem); border-bottom: 1px solid var(--rule); }
.page-head h1, .memo h1 { font-size: clamp(2.25rem, 5vw, 4.3rem); }
.page-head p { margin-bottom: 0; }
.counter { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(1.75rem, 7vw, 7rem); padding-block: clamp(2rem, 5vw, 4.5rem); }
.counter-info { grid-column: 2; grid-row: 1; border-top: 4px solid var(--navy); padding-top: 1rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; min-inline-size: 0; }
legend { font: 1.65rem/1.25 Georgia, serif; margin: 0 0 .8rem; padding: 0; }
label { display: flex; align-items: center; gap: .7rem; padding: .85rem .6rem; border-bottom: 1px solid var(--rule); cursor: pointer; }
label:first-of-type { border-top: 1px solid var(--rule); }
label:has(:checked) { background: var(--stone); }
input[type="radio"] { accent-color: var(--navy); width: 1.15rem; height: 1.15rem; margin: 0; flex: 0 0 auto; }
.receipt { grid-column: 1; grid-row: 1; border-left: 4px solid var(--navy); background: var(--stone); padding: clamp(1rem, 3vw, 2rem); }
.receipt h2 { margin-bottom: 1rem; }
.text-button { padding: .4rem 0; border: 0; background: none; color: var(--navy); text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.archive { background: var(--stone); padding: clamp(1rem, 5vw, 4rem) 1rem; border-bottom: 1px solid var(--rule); }
.memo { max-width: 54rem; margin-inline: auto; padding: clamp(1.2rem, 6vw, 4rem); background: var(--paper); border: 1px solid var(--rule); border-top: 6px solid var(--navy); }
.memo-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .82rem; margin-bottom: 1.3rem; }
.stamp { border: 1px solid var(--seal); color: var(--seal); padding: .2rem .45rem; }
.metadata { font-size: .89rem; margin-block: 1.5rem; }
.metadata div { grid-template-columns: minmax(4.5rem, .34fr) 1fr; }
.memo > p, details p { font-family: Georgia, serif; line-height: 1.7; }
.signature { margin-block: 1.4rem; }
details { border-block: 1px solid var(--rule); }
summary { padding: .8rem .15rem; font-weight: bold; cursor: pointer; }
details p { margin-top: 0; }
@media (max-width: 720px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: .3rem; padding-top: .9rem; }
  nav { flex-wrap: wrap; gap: 0 1.2rem; }
  nav a { font-size: .88rem; padding: .75rem 0 .55rem; }
  .hero, .services-inner, .counter { grid-template-columns: minmax(0, 1fr); }
  .counter-info { grid-column: 1; grid-row: 2; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .25rem; }
}
@media (max-width: 400px) {
  .services dl div { grid-template-columns: 1fr; gap: .15rem; }
}
