:root {
  --ink: #1b164d;
  --muted: #5e5b70;
  --line: #dfdde5;
  --soft: #f7f7f9;
  color: var(--ink);
  background: white;
  font-family: Futura, "Century Gothic", "Avenir Next", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
.wrap { width: min(960px, calc(100% - 48px)); margin-inline: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
button, select, input { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { background: transparent; border: 0; }
nav, .signature, .nav-links, .links, .area, #banks { display: flex; align-items: center; }
nav { min-height: 58px; justify-content: space-between; gap: 16px; }
nav a { text-decoration: none; }
.signature { gap: 8px; min-height: 44px; flex-shrink: 0; }
.wordmark, footer img { object-fit: contain; }
.nav-links { gap: clamp(16px, 3vw, 36px); }
.nav-links a, #lang { display: inline-flex; min-height: 44px; align-items: center; font-size: 15px; }
#lang { padding: 0; text-decoration: underline; text-underline-offset: 4px; }
.masthead { text-align: center; padding: clamp(38px, 7vw, 76px) 0 clamp(34px, 5vw, 55px); }
.seal { display: block; width: clamp(90px, 13vw, 146px); height: auto; margin: 0 auto; }
h1, article h2 { font-family: Georgia, "AppleMyungjo", "Batang", serif; font-weight: 400; }
h1 { margin: 24px 0 5px; font-size: clamp(28px, 4.3vw, 45px); letter-spacing: -.035em; line-height: 1.25; }
#intro { color: var(--muted); margin: 0 auto; max-width: 520px; }
#directory { border-top: 1px solid var(--ink); padding-block: 24px 60px; }
.selectors { display: grid; grid-template-columns: 1.45fr 1fr 1fr; align-items: end; gap: 20px; }
.selectors label { display: grid; gap: 6px; min-width: 0; }
.selectors label span, #bank-label { font-size: 14px; font-weight: 600; }
.selectors input, .selectors select { min-width: 0; width: 100%; min-height: 44px; border: 1px solid #bcbac9; border-radius: 0; background: white; padding: 7px 10px; }
.area { margin-top: 16px; gap: 18px; flex-wrap: wrap; }
#bank-label { margin: 0; }
#banks { flex-wrap: wrap; gap: 4px 10px; }
#banks button { font-size: 14px; padding: 5px 8px; min-height: 42px; }
#banks [aria-pressed=true] { text-decoration: underline; text-underline-offset: 5px; font-weight: 700; }
#count { margin: 24px 0 0; padding: 10px 0; color: var(--muted); font-size: 14px; }
#places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 60px); }
article { padding: 22px 0 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.meta, .alias, address { font-size: 14px; color: var(--muted); }
article h2 { margin: 7px 0 0; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.035em; line-height: 1.3; }
.order { border-left: 1px solid #b7b3c6; margin: 16px 0; padding-left: 12px; }
.order > *, .visit small { display: block; }
small { font-size: 13px; color: var(--muted); }
.order strong { font-weight: 500; }
.visit { margin: 0 0 15px; }
address { margin-top: auto; font-style: normal; }
.links { flex-wrap: wrap; gap: 0 18px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.links a:first-child { font-weight: 650; }
#more { display: block; min-height: 44px; padding: 9px 36px; margin: 28px auto 0; border: 1px solid var(--ink); }
#more:hover { background: var(--soft); }
#more[hidden] { display: none; }
footer { background: var(--ink); color: white; }
footer .wrap { padding-block: 34px; }
footer img { filter: brightness(0) invert(1); }
footer p { margin: 12px 0 0; font-size: 14px; max-width: 72ch; }
@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  nav { gap: 10px; }
  .nav-links { gap: 14px; }
  #directory-link { display: none; }
  .nav-links a, #lang { font-size: 14px; }
  .masthead { padding-block: 28px; }
  h1 { margin-top: 15px; }
  #intro { max-width: 32ch; }
  .selectors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .search-field { grid-column: 1 / -1; }
  .area { display: block; }
  #banks { gap: 0 4px; }
  #banks button { padding-inline: 6px; }
  #count { margin-top: 10px; }
  #places { grid-template-columns: 1fr; }
}
