:root {
  color-scheme: light;
  --ink: #113744;
  --ink-deep: #062d38;
  --paper: #f4ece3;
  --paper-soft: #fbf5ee;
  --cream: #fffaf3;
  --muted: #5e6c6a;
  --copper: #bd7659;
  --line: rgba(17, 55, 68, 0.16);
  --shadow: 0 24px 70px rgba(48, 39, 31, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    "Trebuchet MS", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

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

a,
button,
input {
  min-width: 0;
}

button,
input {
  font: inherit;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 36px;
  padding: 30px clamp(22px, 4vw, 64px);
}

.brand {
  display: inline-grid;
  gap: 8px;
  text-transform: uppercase;
}

.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 6vw, 5.2rem);
  line-height: 0.76;
  letter-spacing: -0.08em;
}

.brand-name {
  font-size: 0.78rem;
  letter-spacing: 0.38em;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 4vw, 62px);
  padding-top: 28px;
  color: var(--ink-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle,
.menu-toggle,
.nav-scrim,
.nav-drawer-head {
  display: none;
}

.header-actions {
  display: flex;
  gap: 18px;
  padding-top: 18px;
}

.header-actions button,
.price-row button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.header-actions span {
  font-size: 0.72rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(430px, 1fr) minmax(260px, 1fr) minmax(160px, 0.45fr);
  align-items: center;
  overflow: hidden;
  padding: 150px clamp(24px, 4vw, 64px) 80px;
  background:
    linear-gradient(90deg, rgba(250, 243, 234, 0.96) 0%, rgba(250, 243, 234, 0.84) 36%, rgba(250, 243, 234, 0.16) 65%),
    linear-gradient(180deg, rgba(250, 243, 234, 0.86), rgba(250, 243, 234, 0.08) 64%),
    url("assets/hero-coast.png") center right / cover no-repeat;
}

.hero::after {
  content: "⌁   ⌁";
  position: absolute;
  top: 140px;
  right: 22%;
  color: var(--ink);
  font-size: 3rem;
  letter-spacing: 0.45em;
  opacity: 0.82;
}

.hero-copy {
  max-width: 420px;
}

.overline {
  margin: 0 0 30px;
  color: var(--copper);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 15ch;
  font-size: clamp(2.6rem, 3.8vw, 4rem);
  line-height: 1.08;
}

.hero-copy p:not(.overline) {
  max-width: 360px;
  margin: 34px 0 0;
  color: #445653;
  font-size: 1.02rem;
  line-height: 1.75;
}

.solid-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 30px;
  padding: 0 28px;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ink-deep);
}

.solid-link::after,
.feature-grid a::after,
.section-intro a::after,
.quote-band a::after,
.about-strip a::after {
  content: "→";
  margin-left: 14px;
}

.hero-monogram {
  display: grid;
  place-items: center;
}

.hero-monogram span {
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(9rem, 22vw, 22rem);
  line-height: 0.78;
  letter-spacing: -0.14em;
}

.hero-motto {
  justify-self: center;
  max-width: 150px;
  border-left: 1px solid var(--copper);
  padding-left: 22px;
  color: var(--ink-deep);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.85;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper-soft);
}

.feature-grid article {
  min-height: 270px;
  padding: 42px clamp(24px, 4vw, 58px);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.feature-book {
  background:
    linear-gradient(rgba(255, 250, 243, 0.62), rgba(255, 250, 243, 0.78)),
    url("assets/hero-coast.png") center / cover;
}

.feature-icon {
  display: block;
  min-height: 28px;
  margin-bottom: 22px;
  color: var(--copper);
  font-size: 1.75rem;
}

.feature-grid h2 {
  font-size: 1rem;
}

.feature-grid p {
  max-width: 260px;
  min-height: 76px;
  margin: 18px 0 28px;
  color: #203c42;
  line-height: 1.55;
}

.feature-grid a,
.section-intro a,
.about-strip a {
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--copper);
  padding-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.books-section {
  display: grid;
  grid-template-columns: minmax(210px, 260px) 1fr;
  gap: 38px;
  padding: 72px clamp(22px, 5vw, 78px);
  background: linear-gradient(90deg, var(--cream), #f0e5da);
}

.section-intro {
  padding-top: 34px;
}

.section-intro h2,
.about-strip h2 {
  max-width: 10ch;
  font-size: clamp(1.7rem, 2.6vw, 2.55rem);
  line-height: 1.2;
}

.about-strip h2 {
  max-width: 14ch;
}

.section-intro a {
  margin-top: 92px;
}

.book-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 28px;
}

.book-card {
  overflow: hidden;
  border-radius: 7px;
  background: #fbf8f1;
  box-shadow: 0 14px 34px rgba(52, 42, 35, 0.18);
}

.cover {
  display: grid;
  min-height: 270px;
  place-items: center;
  padding: 28px;
  color: #fff8ef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  text-align: center;
}

.red-cover {
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 230, 210, 0.18), transparent 22%),
    linear-gradient(145deg, #8f2928, #c75043 55%, #431b20);
}

.sand-cover {
  color: #473c34;
  background:
    linear-gradient(rgba(255, 250, 243, 0.6), rgba(226, 210, 189, 0.72)),
    url("assets/hero-coast.png") center / cover;
}

.blush-cover {
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 20%, rgba(17, 55, 68, 0.14), transparent 17%),
    linear-gradient(155deg, #f0d1c0, #fff5eb 50%, #d8a78f);
}

.sea-cover {
  background:
    radial-gradient(circle at 70% 16%, rgba(255, 230, 175, 0.82), transparent 8%),
    linear-gradient(180deg, #173d4a, #2b6570 58%, #0d303b);
}

.book-card h3,
.price-row {
  margin-left: 18px;
  margin-right: 18px;
}

.book-card h3 {
  margin-top: 18px;
  min-height: 44px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  margin-bottom: 14px;
  font-weight: 700;
}

.price-row button {
  border-radius: 4px;
  color: var(--cream);
  background: var(--ink-deep);
}

.quote-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 42px clamp(28px, 7vw, 104px);
  color: var(--cream);
  background:
    linear-gradient(rgba(5, 45, 56, 0.96), rgba(5, 45, 56, 0.96)),
    url("assets/hero-coast.png") center / cover;
}

blockquote {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.45;
}

blockquote::before,
blockquote::after {
  color: var(--copper);
  font-size: 2.2rem;
}

blockquote::before {
  content: "“ ";
}

blockquote::after {
  content: " ”";
}

.quote-band a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 260px;
  border: 1px solid rgba(255, 250, 243, 0.66);
  padding: 0 24px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-strip {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.9fr) 0.9fr;
  background: var(--paper-soft);
}

.about-strip > div {
  padding: 56px clamp(26px, 5vw, 64px);
}

.about-strip p:not(.overline) {
  max-width: 460px;
  color: #263d42;
  line-height: 1.72;
}

.about-strip a {
  margin-top: 22px;
}

.about-strip figure {
  min-height: 320px;
  margin: 0;
}

.about-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values {
  display: grid;
  align-content: center;
  gap: 28px;
}

.values p {
  margin: 0;
  font-size: 2rem;
}

.values span {
  display: block;
  color: var(--ink-deep);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.7;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.9fr 1.25fr;
  gap: 42px;
  padding: 42px clamp(26px, 6vw, 92px);
  color: var(--cream);
  background: var(--ink-deep);
}

.site-footer h2,
.site-footer label {
  display: block;
  margin: 0 0 18px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-brand .brand-mark {
  color: var(--cream);
  font-size: 4.6rem;
}

.footer-brand span:not(.brand-mark) {
  font-size: 0.86rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.site-footer a,
.site-footer span,
.site-footer p {
  display: block;
  margin: 0 0 10px;
  color: rgba(255, 250, 243, 0.78);
  line-height: 1.55;
}

.email-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  border: 1px solid rgba(255, 250, 243, 0.42);
}

.email-field input,
.email-field button {
  min-height: 48px;
  border: 0;
  color: var(--cream);
  background: transparent;
}

.email-field input {
  width: 100%;
  padding: 0 16px;
}

.email-field input::placeholder {
  color: rgba(255, 250, 243, 0.62);
}

.email-field button {
  border-left: 1px solid rgba(255, 250, 243, 0.42);
  cursor: pointer;
}

@media (max-width: 1120px) {
  h1 {
    max-width: 100%;
    font-size: 2.8rem;
  }
}

@media (max-width: 980px) {
  .site-header {
    position: sticky;
    top: 0;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 68px;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(17, 55, 68, 0.1);
    background: rgba(255, 250, 243, 0.94);
    backdrop-filter: blur(14px);
  }

  .brand {
    gap: 5px;
  }

  .brand-mark {
    font-size: 2.7rem;
  }

  .brand-name {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
  }

  .header-actions {
    justify-self: end;
    justify-content: flex-end;
    gap: 4px;
    padding-top: 0;
  }

  .header-actions button {
    width: 32px;
    height: 32px;
  }

  .header-actions button:nth-child(2) {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    align-self: center;
    justify-self: end;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 21px;
    height: 1px;
    background: var(--ink-deep);
  }

  .main-nav {
    position: fixed;
    z-index: 30;
    top: 0;
    right: 0;
    bottom: 0;
    display: grid;
    width: min(82vw, 320px);
    min-height: 100vh;
    align-content: start;
    gap: 0;
    padding: 22px 22px 34px;
    color: var(--cream);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    background: #062d38;
    box-shadow: -24px 0 70px rgba(6, 45, 56, 0.52);
    transform: translateX(104%);
    transition: transform 220ms ease;
  }

  .main-nav a {
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 0 4px;
    border-bottom: 1px solid rgba(255, 250, 243, 0.22);
    color: #fffaf3;
    font-weight: 800;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    color: #f0c0a7;
  }

  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    margin: -2px -2px 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 250, 243, 0.32);
    color: #fffaf3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .nav-drawer-head label {
    cursor: pointer;
  }

  .nav-scrim {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: block;
    pointer-events: none;
    background: rgba(6, 45, 56, 0);
    opacity: 0;
    transition:
      opacity 220ms ease,
      background 220ms ease;
  }

  .nav-toggle:checked ~ .main-nav {
    right: 0;
    transform: none;
  }

  .nav-toggle:checked ~ .nav-scrim {
    pointer-events: auto;
    opacity: 1;
    background: rgba(6, 45, 56, 0.62);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 76px;
  }

  h1,
  .section-intro h2,
  .about-strip h2 {
    max-width: 100%;
  }

  .hero-monogram {
    justify-content: start;
    order: -1;
  }

  .hero-motto {
    justify-self: start;
  }

  .feature-grid,
  .books-section,
  .quote-band,
  .about-strip,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .book-row {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .section-intro a {
    margin-top: 28px;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: sticky;
    top: 0;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    min-height: 64px;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(17, 55, 68, 0.1);
    background: rgba(255, 250, 243, 0.94);
    backdrop-filter: blur(14px);
  }

  .brand {
    gap: 5px;
  }

  .brand-mark {
    font-size: 2.35rem;
  }

  .brand-name {
    font-size: 0.54rem;
    letter-spacing: 0.2em;
  }

  .header-actions {
    justify-self: end;
    gap: 2px;
  }

  .header-actions button {
    width: 30px;
    height: 30px;
  }

  .header-actions button:nth-child(2) {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    align-self: center;
    justify-self: end;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--ink-deep);
  }

  .main-nav {
    position: fixed;
    z-index: 30;
    top: 0;
    right: 0;
    bottom: 0;
    display: grid;
    width: min(82vw, 320px);
    min-height: 100vh;
    align-content: start;
    gap: 0;
    padding: 22px 22px 34px;
    color: var(--cream);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    background: #062d38;
    box-shadow: -24px 0 70px rgba(6, 45, 56, 0.52);
    transform: translateX(104%);
    transition: transform 220ms ease;
  }

  .main-nav a {
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 0 4px;
    border-bottom: 1px solid rgba(255, 250, 243, 0.22);
    color: #fffaf3;
    font-weight: 800;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    color: #f0c0a7;
  }

  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    margin: -2px -2px 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 250, 243, 0.32);
    color: #fffaf3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .nav-drawer-head label {
    cursor: pointer;
  }

  .nav-scrim {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: block;
    pointer-events: none;
    background: rgba(6, 45, 56, 0);
    opacity: 0;
    transition:
      opacity 220ms ease,
      background 220ms ease;
  }

  .nav-toggle:checked ~ .main-nav {
    right: 0;
    transform: none;
  }

  .nav-toggle:checked ~ .nav-scrim {
    pointer-events: auto;
    opacity: 1;
    background: rgba(6, 45, 56, 0.62);
  }

  .hero {
    min-height: 590px;
    gap: 18px;
    align-content: start;
    padding: 48px 18px 44px;
    background:
      linear-gradient(180deg, rgba(250, 243, 234, 0.98) 0%, rgba(250, 243, 234, 0.9) 48%, rgba(250, 243, 234, 0.28) 100%),
      url("assets/hero-coast.png") 64% bottom / cover no-repeat;
  }

  .hero::after {
    display: none;
  }

  .hero-copy {
    max-width: none;
  }

  .overline {
    margin-bottom: 18px;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
  }

  h1 {
    max-width: 100%;
    font-size: 2.3rem;
    line-height: 1.05;
    letter-spacing: 0.04em;
  }

  .hero-copy p:not(.overline) {
    max-width: 22rem;
    margin-top: 22px;
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .solid-link {
    width: 100%;
    justify-content: center;
    margin-top: 24px;
    padding: 0 18px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .hero-monogram {
    position: absolute;
    right: 8px;
    bottom: 92px;
    z-index: 0;
    opacity: 0.16;
  }

  .hero-copy,
  .hero-motto {
    position: relative;
    z-index: 1;
  }

  .hero-monogram span {
    font-size: 10rem;
  }

  .hero-motto {
    max-width: 100%;
    justify-self: stretch;
    margin: 18px 0 0;
    padding: 12px 0 12px 16px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    line-height: 1.65;
    background: rgba(255, 250, 243, 0.72);
  }

  .feature-grid article {
    min-height: 0;
    padding: 32px 18px;
  }

  .feature-grid p {
    min-height: 0;
    margin-bottom: 22px;
  }

  .feature-grid a,
  .section-intro a,
  .about-strip a {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .books-section {
    padding: 52px 18px;
    gap: 30px;
  }

  .section-intro {
    padding-top: 0;
  }

  .section-intro h2,
  .about-strip h2 {
    max-width: 100%;
    font-size: 1.75rem;
  }

  .book-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .book-card {
    width: min(100%, 360px);
    margin: 0 auto;
  }

  .cover {
    min-height: 245px;
    padding: 24px;
    font-size: 2.2rem;
  }

  .quote-band {
    padding: 34px 18px;
    gap: 24px;
  }

  blockquote {
    font-size: 1.2rem;
    line-height: 1.45;
  }

  .quote-band a {
    min-width: 0;
    width: 100%;
    padding: 0 16px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-align: center;
  }

  .about-strip > div {
    padding: 40px 18px;
  }

  .about-strip figure {
    min-height: 230px;
  }

  .values {
    gap: 18px;
  }

  .values span {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .site-footer {
    gap: 28px;
    padding: 38px 18px;
  }

  .footer-brand .brand-mark {
    font-size: 3.7rem;
  }

  .footer-brand span:not(.brand-mark) {
    font-size: 0.76rem;
    letter-spacing: 0.22em;
  }

  .email-field input {
    padding: 0 12px;
  }
}
