* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: #263238; font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.landing-container { width: min(100% - 40px, 1200px); margin-inline: auto; }
.landing-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.landing-header { position: relative; z-index: 10; background: #fff; border-bottom: 1px solid #e2e9e6; }
.landing-header__inner { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 20px; }
.landing-header__brand img { display: block; }
.landing-header__links, .landing-header__account { display: flex; align-items: center; gap: 26px; }
.landing-header__links a, .landing-header__account a { font-size: 14px; font-weight: 700; }
.landing-header__links a:hover, .landing-header__login:hover { color: #285c4e; }
.landing-header__account { gap: 16px; }
.landing-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 21px; border-radius: 5px; background: #285c4e; color: #fff; font-weight: 700; }
.landing-button:hover { background: #1d453a; color: #fff; }
.landing-button--small { min-height: 37px; padding-inline: 15px; }
.landing-header__mobile { display: none; }

.landing-hero { position: relative; display: flex; height: min(610px, 73svh); min-height: 430px; align-items: center; overflow: hidden; background: #31423d; color: #fff; }
.landing-hero__image, .landing-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.landing-hero__image { object-fit: cover; object-position: center 56%; }
.landing-hero__shade { background: rgba(15, 25, 22, .56); }
.landing-hero__content { position: relative; z-index: 1; padding-block: 40px; }
.landing-hero__eyebrow { margin: 0 0 10px; color: #e9b98b; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.landing-hero h1 { margin: 0; font-size: 52px; line-height: 1.1; }
.landing-hero__description { max-width: 550px; margin: 18px 0 26px; font-size: 18px; line-height: 1.55; }
.landing-hero__search { display: flex; width: min(100%, 525px); height: 54px; overflow: hidden; border-radius: 5px; background: #fff; }
.landing-hero__search input { min-width: 0; flex: 1; padding: 0 17px; border: 0; outline: 0; color: #263238; }
.landing-hero__search button { width: 54px; flex: 0 0 54px; border: 0; background: #285c4e; color: #fff; font-size: 19px; cursor: pointer; }
.landing-hero__search button:hover { background: #1d453a; }
.landing-hero__browse { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; font-weight: 700; }
.landing-hero__browse:hover { color: #e9b98b; }

.landing-section { padding: 66px 0 72px; scroll-margin-top: 30px; }
.landing-section--muted { background: #f4f7f6; }
.landing-section__heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.landing-section__eyebrow { margin: 0 0 7px; color: #955d45; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.landing-section h2 { margin: 0; color: #263238; font-size: 28px; line-height: 1.2; }
.landing-section__heading > a { display: inline-flex; align-items: center; gap: 7px; color: #285c4e; font-size: 14px; font-weight: 700; white-space: nowrap; }
.landing-section__heading > a:hover { text-decoration: underline; }
.landing-section__empty { margin: 0; padding: 36px 0; border-top: 1px solid #dce6e2; color: #677671; }
.landing-books { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.landing-book { min-width: 0; overflow: hidden; border: 1px solid #dce6e2; border-radius: 6px; background: #fff; }
.landing-book__cover { display: flex; height: 230px; align-items: center; justify-content: center; padding: 14px; background: #e8efec; color: #6d9688; }
.landing-book__cover img { width: 100%; height: 100%; object-fit: contain; }
.landing-book__cover > i { font-size: 42px; }
.landing-book__body { padding: 14px 16px 18px; }
.landing-book__body p { overflow: hidden; margin: 0 0 6px; color: #427360; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.landing-book h3 { display: -webkit-box; overflow: hidden; min-height: 42px; margin: 0 0 7px; font-size: 16px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.landing-book h3 a:hover { color: #285c4e; text-decoration: underline; }
.landing-book__body > span { display: block; overflow: hidden; color: #64716e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.landing-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.landing-categories a { display: grid; min-height: 88px; grid-template-columns: minmax(0, 1fr) 20px; align-content: center; gap: 5px; padding: 14px 17px; border: 1px solid #d7e2dd; border-radius: 5px; background: #fff; }
.landing-categories a:hover { border-color: #285c4e; }
.landing-categories span { overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.landing-categories small { color: #667672; font-size: 12px; }
.landing-categories i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #285c4e; }
.landing-publishers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.landing-publishers > div { display: flex; min-width: 0; min-height: 76px; flex-direction: column; justify-content: center; gap: 5px; padding: 14px 17px; border-left: 3px solid #b77b5e; background: #fff; }
.landing-publishers strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.landing-publishers span { color: #667672; font-size: 12px; }

.landing-footer { padding: 30px 0; background: #253831; color: #fff; }
.landing-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.landing-footer img { display: block; }
.landing-footer nav { display: flex; gap: 22px; }
.landing-footer a, .landing-footer span { color: #d8e5df; font-size: 13px; }
.landing-footer a:hover { color: #fff; text-decoration: underline; }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #e3a56f; outline-offset: 2px; }

@media (max-width: 900px) {
    .landing-header__links, .landing-header__account { display: none; }
    .landing-header__mobile { position: relative; display: block; }
    .landing-header__mobile summary { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; list-style: none; cursor: pointer; font-size: 22px; }
    .landing-header__mobile summary::-webkit-details-marker { display: none; }
    .landing-header__mobile nav { position: absolute; top: 42px; right: 0; display: flex; width: min(280px, calc(100vw - 40px)); flex-direction: column; padding: 10px; border: 1px solid #dce6e2; border-radius: 5px; background: #fff; box-shadow: 0 12px 24px rgba(25, 40, 34, .12); }
    .landing-header__mobile nav a { padding: 10px; font-size: 14px; font-weight: 700; }
    .landing-books, .landing-categories, .landing-publishers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .landing-container { width: min(100% - 28px, 1200px); }
    .landing-hero { height: min(520px, 69svh); min-height: 390px; }
    .landing-hero h1 { font-size: 40px; }
    .landing-hero__description { font-size: 16px; }
    .landing-section { padding: 48px 0 54px; }
    .landing-section h2 { font-size: 23px; }
    .landing-section__heading { align-items: start; }
    .landing-section__heading > a { max-width: 120px; white-space: normal; }
    .landing-books { gap: 10px; }
    .landing-book__cover { height: 170px; padding: 9px; }
    .landing-book__body { padding: 11px; }
    .landing-book h3 { font-size: 14px; min-height: 38px; }
    .landing-categories, .landing-publishers { grid-template-columns: minmax(0, 1fr); }
    .landing-footer__inner { flex-wrap: wrap; }
    .landing-footer nav { order: 3; width: 100%; }
}
