:root {
  color-scheme: light;
  font: 16px/1.55 system-ui, sans-serif;
  color: #172d29;
  background: #f5f7f3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: #075c49; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #b65c22;
  outline-offset: 3px;
}
.wrap { width: min(100% - 2rem, 73rem); margin-inline: auto; }
.site-header, .site-footer { background: #fff; }
.navigation, .site-footer .wrap, .actions, .pagination {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
}
.navigation, .site-footer .wrap { min-height: 4.5rem; justify-content: space-between; padding-block: .75rem; }
.navigation nav { display: flex; gap: 1.2rem; }
.brand { font-weight: 850; letter-spacing: .09em; text-decoration: none; }
.hero { background: #123b33; color: #fff; padding: clamp(2.5rem, 8vw, 6rem) 0; }
h1, h2, h3 { line-height: 1.16; margin: 0; }
h1 { font-size: clamp(2.25rem, 7vw, 4.7rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.3rem); letter-spacing: -.035em; }
.hero p { font-size: clamp(1rem, 2vw, 1.3rem); color: #daece5; }
.button, .secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.65rem; padding: .55rem .9rem; border-radius: .5rem;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.button { background: #075c49; color: #fff; }
.hero .button { background: #e5f4e7; color: #123b33; }
.secondary { border: 1px solid #8aa69e; background: #fff; color: #174539; }
.secondary:disabled { opacity: .5; cursor: default; }
.content { padding-block: 1.7rem 3rem; }
.notice, .buying { padding: clamp(1rem, 3vw, 1.65rem); border-radius: .7rem; }
.notice { background: #e7f0e7; border-left: .3rem solid #2d755e; }
.notice p { margin: .35rem 0 .5rem; }
#inventory { margin-block: 2.5rem; }
form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .75rem; align-items: end; margin-top: 1rem; padding: 1rem;
  border: 1px solid #d1ded5; border-radius: .7rem; background: #fff;
}
label { display: grid; gap: .25rem; font-size: .88rem; font-weight: 650; min-width: 0; }
input, select { font: inherit; font-size: 1rem; min-width: 0; width: 100%; color: inherit; background: #fff; padding: .55rem; border: 1px solid #8aa69e; border-radius: .4rem; }
.search { grid-column: 1 / -1; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: .85rem; }
.result { background: #fff; border: 1px solid #d1ded5; border-radius: .7rem; padding: 1rem; overflow-wrap: anywhere; }
.result h3 { font-size: 1rem; line-height: 1.45; }
.result p { margin: .3rem 0; }
.result .detail { color: #466057; font-size: .86rem; }
.result .price { color: #075c49; font-size: 1.28rem; font-weight: 750; margin-top: .7rem; }
.pagination { justify-content: center; margin-top: 1.3rem; }
.buying { background: #e7f0e7; }
.site-footer { font-size: .9rem; }
