:root {
  color-scheme: light;
  --paper: #f9f0e4;
  --cream: #fffaf2;
  --berry: #540e1d;
  --berry-hover: #74263b;
  --ink: #352623;
  --muted: #6b5148;
  --border: #c4a37e;
  --light-border: #ddc7ad;
  --accent: #f2dfcc;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
p { line-height: 1.55; }
a { color: var(--berry); text-underline-offset: .24em; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }
button, input { font: inherit; }
.wrap { width: min(1110px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; inset: .75rem auto auto .75rem; padding: .7rem; background: var(--cream); z-index: 2; }
.skip:not(:focus) { clip-path: inset(50%); }

.head, .foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .85rem 1.5rem; padding-block: .8rem; }
.head { border-bottom: 1px solid var(--border); }
.foot { border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem; }
.head nav, .foot nav { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.25rem; }
.head nav a, .foot nav a { display: inline-flex; min-height: 44px; align-items: center; }
.logo { width: 108px; flex-shrink: 0; }
.logo img { mix-blend-mode: multiply; }

h1, h2, h3 { color: var(--berry); font-family: Georgia, serif; font-weight: 400; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.3rem, 6vw, 4.65rem); line-height: 1.04; letter-spacing: -.046em; text-wrap: balance; }
h2 { font-size: clamp(1.65rem, 4vw, 2.58rem); line-height: 1.12; letter-spacing: -.025em; }
h3 { font-size: 1.5rem; line-height: 1.13; }

.intro { margin-block: 1.55rem 2.25rem; padding: clamp(1.25rem, 4vw, 2.85rem); background: var(--cream); border: 1px solid var(--light-border); }
.intro > p { max-width: 61ch; margin: .95rem 0 1.45rem; }
.search-form { max-width: 740px; }
.search-form label { display: block; color: var(--berry); font-weight: 650; font-size: .94rem; margin-bottom: .3rem; }
.search-fields { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: .5rem; }
.search-fields input { width: 100%; min-width: 0; min-height: 49px; background: #fffefa; color: var(--ink); border: 1px solid #9c7868; border-radius: 0; padding: .65rem .8rem; }
.search-fields input::placeholder { opacity: 1; color: var(--muted); }
.examples { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem .6rem; margin-top: .6rem; }
.examples button { background: transparent; color: var(--berry); border: 0; min-height: 44px; padding: .2rem .6rem; text-underline-offset: .25em; text-decoration-line: underline; cursor: pointer; }
.examples button:hover { background: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; padding: .6rem .85rem; border: 1px solid var(--berry); background: var(--berry); color: var(--cream); font-weight: 650; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--berry-hover); border-color: var(--berry-hover); }

.group { margin-block: 2rem; }
.group + .group { padding-top: 1.35rem; border-top: 1px solid var(--light-border); }
.group-note { color: var(--muted); margin: .55rem 0 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .85rem; margin-top: 1rem; }
.card { display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--light-border); padding: clamp(1rem, 2.4vw, 1.45rem); }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.price { display: inline-block; align-self: flex-start; margin: .65rem 0 0; padding: .13rem .38rem; background: var(--accent); color: var(--berry); font-weight: 680; font-variant-numeric: tabular-nums; }
.summary { margin: .72rem 0 .95rem; color: var(--muted); overflow-wrap: anywhere; }
.card-actions, .contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; }
.card-actions { margin-top: auto; }
.card-actions a, .contact-actions a { font-size: .88rem; }
.detail { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 650; }
.notice { margin: .75rem 0 .55rem; border-inline-start: 3px solid var(--border); padding-inline-start: .8rem; overflow-wrap: anywhere; }
.more { margin: .65rem 0 0; }

.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem 1.35rem; margin-block: 2rem; background: var(--accent); padding: clamp(1rem, 3vw, 1.55rem); }
.contact p { margin: .55rem 0 0; max-width: 56ch; }

@media (max-width: 530px) {
  .wrap { width: calc(100% - 1.5rem); }
  .head nav { font-size: .84rem; gap: .35rem .7rem; }
  .logo { width: 84px; }
  .intro { margin-top: .85rem; }
  .examples { gap: .1rem .2rem; }
}

@media (max-width: 355px) {
  .search-fields { grid-template-columns: minmax(0, 1fr); }
  .search-fields button { justify-self: start; }
}
.search-hint { color: #694d40; margin: .5rem 0 0; font-size: .88rem; }
.orientation { background: #fff4e7; border: 1px solid #d7c0ad; border-inline-start: 4px solid #681d31; margin: 1.8rem 0; padding: clamp(1rem, 4vw, 2rem); }
.orientation h2 { color: #591623; margin: 0 0 .5rem; }
.orientation p { max-width: 72ch; line-height: 1.58; margin: .35rem 0; }
.orientation .orientation-sources { margin-top: .8rem; color: #664e42; font-size: .82rem; }
.orientation-sources a { display: inline-block; margin-inline-start: .55rem; }
.fit-reason { color: #591623; font-weight: 600; font-size: .9rem; line-height: 1.48; }
