:root {
  color-scheme: light;
  --paper: #f7f0e5;
  --linen: #fffaf1;
  --ink: #242018;
  --muted: #675d4f;
  --sage: #5f775c;
  --coral: #c95c45;
  --lake: #4b7f91;
  --line: rgba(80, 68, 52, 0.18);
  --shadow: rgba(36, 32, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  font-family: ui-serif, Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--coral);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
}

.topnav.inline {
  width: 100%;
}

.topnav div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 8px 18px var(--shadow);
}

.hero {
  min-height: 72vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background-image: url("assets/memory-notebook-hero.jpg");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  align-self: center;
  padding: 36px 0 74px;
  text-shadow: 0 1px 0 rgba(255, 250, 241, 0.72);
}

.eyebrow {
  color: var(--sage);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 10px 0 7px;
  font-size: 1.08rem;
}

p {
  margin: 0 0 16px;
}

.lead {
  max-width: 670px;
  margin-top: 20px;
  color: #4f463a;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  font-size: 1.08rem;
}

.meta {
  color: var(--muted);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  color: white;
  background: var(--coral);
  box-shadow: 0 10px 22px rgba(201, 92, 69, 0.26);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  text-decoration: none;
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid var(--line);
  box-shadow: none;
}

.section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.intro {
  padding-top: 36px;
}

.intro h1 {
  max-width: 820px;
  font-size: clamp(2.2rem, 6vw, 4.3rem);
  line-height: 1.04;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

article {
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.74);
  box-shadow: 0 14px 28px rgba(36, 32, 24, 0.06);
}

article p,
.split p {
  color: var(--muted);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
}

.marker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: white;
  background: var(--lake);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}

.link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
}

.link-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.72);
}

.help-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.help-list h2 {
  font-size: 1.22rem;
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    background-position: 30% center;
  }

  .hero-copy {
    padding: 28px 0 44px;
  }

  .topnav {
    align-items: flex-start;
    gap: 12px;
  }

  .topnav div {
    gap: 12px;
  }

  .grid,
  .help-list,
  .split {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.05rem, 10.5vw, 3.35rem);
    line-height: 1.02;
  }

  .intro h1 {
    font-size: clamp(1.95rem, 9.5vw, 3rem);
  }
}
