:root {
  --black: #1a1a1a;
  --gray: rgba(0, 0, 0, 0.48);
  --light-gray: rgba(0, 0, 0, 0.1);
  --paper: #fcfcfa;
  --soft: #f4f1ed;
  --warm-line: rgba(93, 73, 54, 0.16);
  --taupe: #8a8075;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--paper);
  font-family: "Courier New", Courier, monospace;
}

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

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

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 26px clamp(20px, 2.8vw, 39px);
  border-bottom: 1px solid var(--light-gray);
  background: var(--paper);
}

.brand {
  justify-self: start;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

nav {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px;
  color: var(--gray);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

nav a:hover {
  color: var(--black);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(38px, 5vw, 56px);
  align-items: start;
  width: min(1320px, 100%);
  min-height: auto;
  margin: 0 auto;
  padding: 76px clamp(20px, 2.8vw, 39px) 60px;
  border-bottom: 1px solid var(--light-gray);
}

.hero-copy {
  align-self: start;
  max-width: 940px;
}

.kicker {
  margin: 0 0 26px;
  color: var(--gray);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
.script-link,
.section-line h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(56px, 6vw, 70px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

h1 em {
  font-style: italic;
  font-weight: 400;
}

.lede {
  max-width: 34ch;
  margin: 28px 0 0;
  color: rgba(0, 0, 0, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  min-height: 52px;
  padding: 14px 30px;
  border: 1px solid var(--black);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button-dark {
  color: #fff;
  background: var(--black);
}

.button-light {
  color: var(--black);
  background: #fff;
}

.button:hover {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

.script-link {
  color: rgba(0, 0, 0, 0.6);
  font-size: 17px;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 8px;
}

.key-panel {
  align-self: start;
  padding-left: 36px;
  border-left: 1px solid var(--light-gray);
}

.key-panel .kicker {
  margin-bottom: 30px;
}

dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 22px;
  align-items: baseline;
}

dt,
dd {
  margin: 0;
}

dt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  text-align: center;
}

dd {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.2;
}

.muted {
  color: var(--gray);
  text-decoration: line-through;
}

.progress-mark {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
}

.progress-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--black);
  transform: translate(-50%, -50%);
}

.progress-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--black);
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center;
}

.key-icon {
  display: block;
  width: 18px;
  height: 22px;
  fill: var(--black);
}

.heart-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--black);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.notebook-strip,
.guide,
.site-footnote {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 60px) clamp(20px, 2.8vw, 39px);
}

.section-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-line h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  font-style: italic;
  font-weight: 500;
}

.section-line a,
.section-line p {
  margin: 0;
  color: var(--gray);
  font-size: 18px;
  font-weight: 700;
}

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

figure {
  margin: 0;
  background: var(--soft);
}

figure img {
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.02);
}

figcaption {
  padding: 18px 20px 22px;
  color: var(--gray);
  font-size: 16px;
  font-weight: 700;
  text-transform: lowercase;
}

.guide {
  display: grid;
  gap: clamp(28px, 4vw, 46px);
  border-top: 1px solid var(--light-gray);
}

.guide-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: stretch;
}

.guide h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 5.3vw, 74px);
  font-weight: 500;
  line-height: 1.02;
  text-align: left;
}

.guide-image-slot {
  min-height: 280px;
  display: grid;
  place-items: end start;
  padding: 20px;
  border: 1px solid var(--warm-line);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.84) 0 14px, rgba(244, 241, 237, 0.9) 14px 28px);
}

.guide-image-slot span {
  color: var(--gray);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.guide-grid p {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--light-gray);
  color: rgba(0, 0, 0, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.45;
}

.site-footnote {
  border-top: 1px solid var(--light-gray);
  padding-top: 28px;
  padding-bottom: 28px;
}

.site-footnote p {
  max-width: 1120px;
  margin: 0;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
}

.site-footnote a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
}

.login-art {
  min-height: 100vh;
  background: #fff;
}

.login-art img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}

.login-panel {
  display: grid;
  align-content: center;
  padding: clamp(36px, 5vw, 72px);
  border-left: 1px solid var(--light-gray);
}

.login-panel h1 {
  font-size: clamp(48px, 5vw, 78px);
}

.login-panel p {
  color: rgba(0, 0, 0, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.45;
}

.magic-form {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.magic-form label {
  display: grid;
  gap: 10px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.magic-form input {
  min-height: 64px;
  border: 1px solid var(--black);
  padding: 16px;
  font: inherit;
  font-size: 18px;
}

.magic-form button {
  min-height: 68px;
  border: 1px solid var(--black);
  color: #fff;
  background: var(--black);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.form-note,
.back-link {
  margin-top: 18px;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.5;
}

.back-link {
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (max-width: 980px) {
  .hero,
  .login-page {
    grid-template-columns: 1fr;
  }

  .guide-intro,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .key-panel {
    padding: 38px 0 0;
    border-left: 0;
    border-top: 1px solid var(--light-gray);
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-art {
    min-height: 360px;
  }

  .login-panel {
    border-left: 0;
    border-top: 1px solid var(--light-gray);
  }
}

@media (max-width: 640px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .brand {
    justify-self: center;
  }

  nav {
    grid-column: 1;
    gap: 16px;
  }

  .section-line,
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  h1 {
    font-size: 56px;
  }

  .lede {
    margin-top: 34px;
    font-size: 24px;
  }

  .button {
    width: 100%;
    min-height: 64px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid p {
    font-size: 22px;
  }
}
