:root {
  --cream: #fffdf5;
  --brown: #885926;
  --muted: #867461;
  --paper: #f3f3f3;
  --ink: #111111;
  --line: #b2b2b2;
  --serif: "Playfair Display", Georgia, serif;
  --price: "Source Serif 4", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ece7dc;
  color: var(--ink);
  font-family: var(--serif);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  padding: 0;
  font: inherit;
}

.phone-shell {
  width: min(100%, 393px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 20px 70px rgba(40, 25, 12, 0.14);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 57px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 8px;
  background: var(--cream);
}

.brand-mark {
  width: 92px;
  height: 45px;
  object-fit: contain;
}

.icon-button {
  width: 34px;
  height: 32px;
  display: grid;
  place-content: center;
  gap: 3px;
  background: transparent;
  color: #1d1b20;
}

.icon-button span {
  width: 12px;
  height: 1.4px;
  display: block;
  background: currentColor;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.small-icon {
  width: 14px;
  height: 24px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #1d1b20;
}

.small-icon svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero {
  min-height: 343px;
  padding: 85px 30px 46px;
  text-align: center;
}

.hero-kicker,
h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-kicker {
  margin-bottom: 0;
  color: var(--brown);
  font-size: 30px;
  font-weight: 400;
  line-height: 0.95;
}

h1 {
  margin-bottom: 13px;
  color: var(--brown);
  font-size: 40px;
  font-style: italic;
  font-weight: 400;
  line-height: 0.95;
}

.muted,
.section-heading p {
  color: var(--muted);
  font-size: 18px;
  line-height: 0.95;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  margin-top: 39px;
}

.button {
  height: 39px;
  min-width: 157px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  font-size: 18px;
  line-height: 0.95;
}

.button-primary {
  background: var(--brown);
  color: #ffffff;
}

.text-action {
  font-size: 18px;
  line-height: 0.95;
}

.brown-band {
  padding: 15px 28px 29px;
  border: 1px solid #a1a1a1;
  border-left: 0;
  border-right: 0;
  background: var(--brown);
}

.section-heading {
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 400;
  line-height: 0.95;
}

.section-heading.light h2 {
  color: var(--paper);
}

.section-heading.light p {
  margin-bottom: 17px;
  color: rgba(255, 253, 245, 0.69);
}

.subject-rail {
  width: calc(100% + 56px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 107px;
  gap: 9px;
  margin: 0 -28px 39px;
  overflow-x: auto;
  padding: 0 27px 8px;
  scrollbar-width: none;
}

.subject-rail::-webkit-scrollbar,
.carousel-rail::-webkit-scrollbar {
  display: none;
}

.subject-rail a {
  height: 180px;
  display: flex;
  justify-content: center;
  padding-top: 0;
  background: linear-gradient(to bottom, transparent 0 27px, #ffffff 27px);
  color: #ffffff;
  font-size: 18px;
  line-height: 0.95;
}

.picks-heading {
  margin-top: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 8px;
  row-gap: 34px;
}

.book-card {
  position: relative;
  min-width: 0;
}

.book-cover {
  width: 100%;
  aspect-ratio: 159 / 252;
  margin-bottom: 8px;
  border: 0;
  background: #ffffff;
}

.cream-cover {
  background: var(--cream);
}

.book-card h3 {
  margin-bottom: 5px;
  overflow: hidden;
  font-size: 17px;
  font-weight: 400;
  line-height: 0.95;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-card p {
  width: calc(100% - 42px);
  min-height: 24px;
  margin-bottom: 0;
  color: rgba(0, 0, 0, 0.64);
  font-size: 13px;
  line-height: 0.95;
}

.book-card strong {
  position: absolute;
  right: 0;
  bottom: 3px;
  font-family: var(--price);
  font-size: 17px;
  font-weight: 400;
  line-height: 0.95;
}

.book-card.dark h3,
.book-card.dark strong {
  color: var(--paper);
}

.book-card.dark p {
  color: #e8e8e8;
}

.dark-grid {
  row-gap: 35px;
}

.button-outline {
  width: 107px;
  min-width: 107px;
  height: 28px;
  margin: 32px auto 0;
  border: 0.4px solid #ffffff;
  color: var(--paper);
}

.addons,
.clothes {
  position: relative;
  border: 0.6px solid var(--line);
  border-left: 0;
  border-right: 0;
  background: #ffffff;
}

.addons {
  padding: 72px 0 75px;
}

.clothes {
  padding: 73px 0 58px;
}

.section-heading.left {
  padding: 0 23px 0 28px;
  text-align: left;
}

.section-heading.left h2 {
  margin-bottom: 4px;
  color: #000000;
  font-size: 25px;
}

.section-heading.left p {
  margin-bottom: 21px;
}

.mini-view-all {
  position: absolute;
  top: 112px;
  right: 24px;
  font-size: 10px;
  line-height: 1.53;
}

.carousel-rail {
  display: grid;
  grid-auto-flow: column;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.add-cart-rail {
  grid-auto-columns: 149px;
  gap: 15px;
  padding: 0 122px 0;
}

.clothes-rail {
  grid-auto-columns: 159px;
  gap: 7px;
  padding: 0 28px;
}

.rail-card {
  scroll-snap-align: start;
}

.rail-card .book-cover {
  aspect-ratio: 149 / 241;
}

.clothes-rail .book-cover {
  aspect-ratio: 159 / 252;
}

.rail-card button {
  width: 100%;
  height: 28px;
  margin-top: 15px;
  border: 0.4px solid var(--brown);
  background: var(--cream);
  color: var(--brown);
  cursor: pointer;
  font-size: 18px;
  line-height: 0.95;
}

.featured {
  padding: 33px 28px 61px;
  border: 0.6px solid var(--line);
  border-left: 0;
  border-right: 0;
  background: #ffffff;
}

.language-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0 7px 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(136, 89, 38, 0.38);
}

.language-line::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -1px;
  width: 48px;
  height: 1px;
  background: var(--brown);
}

.language-line button {
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 0.95;
}

.language-line button[aria-selected="true"] {
  color: var(--brown);
}

.light-grid .book-cover {
  border: 0;
  background: #ffffff;
}

@media (min-width: 700px) {
  body {
    padding: 32px 0;
  }

  .phone-shell {
    border-radius: 18px;
  }
}
