/* Decisions landing page
   Built for the supplied semantic HTML. Replace the current decisions.css
   with this file rather than layering it on top of existing rules. */

:root {
  --paper: #f3f0e8;
  --paper-deep: #ebe7dc;
  --paper-light: #faf8f2;
  --ink: #292824;
  --body: #4e4a44;
  --muted: #6e685f;
  --sage: #657d68;
  --sage-deep: #4f6653;
  --sage-wash: #e7ece5;
  --copper: #a5653f;
  --copper-soft: #c79674;
  --line: rgba(41, 40, 36, 0.16);
  --line-strong: rgba(41, 40, 36, 0.28);
  --shadow: 0 22px 46px rgba(43, 39, 32, 0.13);
  --serif-display: "Goudy Bookletter 1911", Georgia, serif;
  --serif-text: "Fanwood Text", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body.decisions-page {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.decisions-page img {
  display: block;
  max-width: 100%;
}

body.decisions-page a {
  color: inherit;
  text-decoration: none;
}

body.decisions-page p,
body.decisions-page h1,
body.decisions-page h2,
body.decisions-page h3,
body.decisions-page ul {
  margin-top: 0;
}

body.decisions-page p {
  color: var(--body);
}

body.decisions-page a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 4px;
}

.editorial-frame {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

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

/* Header */

.decisions-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 232, 0.96);
}

.decisions-header .editorial-frame {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.wordmark {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 20px;
  line-height: 1;
}

.decisions-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.decisions-nav a {
  color: var(--body);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 160ms ease;
}

.decisions-nav a:hover {
  color: var(--ink);
}

.decisions-nav .store-link {
  color: var(--copper);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

/* Shared typography */

.hero-title,
.editorial-statement,
.section-title,
.final-download h2 {
  margin-bottom: 0;
  font-family: var(--serif-display);
  font-weight: 400;
  color: var(--ink);
}

.hero-title {
  font-size: clamp(62px, 6vw, 92px);
  line-height: 0.89;
  letter-spacing: -0.045em;
}

.editorial-statement {
  font-size: clamp(42px, 4.2vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.032em;
}

.section-title {
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.editorial-label {
  margin-bottom: 0;
  color: var(--muted) !important;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-shot {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(43, 39, 32, 0.12));
}

/* Hero */

.hero-composition {
  padding: clamp(82px, 8vw, 116px) 0 clamp(72px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}

.hero-composition .editorial-grid {
  align-items: start;
}

.hero-title {
  grid-column: 1 / 7;
  grid-row: 1;
  align-self: end;
  max-width: 650px;
}

.hero-intro {
  grid-column: 1 / 6;
  grid-row: 2;
  max-width: 500px;
  margin: 38px 0 0;
  font-size: 18px;
  line-height: 1.65;
}

.hero-cta {
  grid-column: 1 / 6;
  grid-row: 3;
  margin-top: 30px;
}

.hero-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--copper);
  border-bottom: 1px solid var(--copper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-phones {
  grid-column: 7 / 13;
  grid-row: 1 / 4;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 0 10px;
}

.hero-phones .app-shot {
  width: clamp(214px, 18vw, 277px);
  flex: 0 0 auto;
}

.hero-phones .phone-a {
  position: relative;
  z-index: 2;
  transform: translateY(-8px) rotate(-0.7deg);
}

.hero-phones .phone-b {
  position: relative;
  z-index: 1;
  margin-left: -56px;
  transform: translateY(28px) rotate(0.7deg);
}

.hero-trust {
  grid-column: 1 / 13;
  grid-row: 4;
  margin-top: 40px;
}

.ratio-rule {
  position: relative;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      var(--copper) 0 44%,
      var(--line-strong) 44% 56%,
      var(--sage) 56% 100%
    );
}

.ratio-rule::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--sage);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.hero-trust p {
  margin: 16px 0 0;
  color: var(--muted) !important;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

/* Notebook */

.notebook-spread {
  padding-block: 84px;
  background: var(--paper-light);
}

.notebook-spread .editorial-grid {
  row-gap: 22px;
  align-items: center;
}

.notebook-spread > .editorial-frame > .editorial-label {
  grid-column: 1 / 13;
  grid-row: 1;
}

.notebook-title {
  grid-column: 1 / 13;
  grid-row: 2;
  margin: 6px 0 42px;
}

.notebook-image {
  grid-column: 1 / 7;
  grid-row: 3 / 5;
  display: flex;
  justify-content: center;
  align-self: center;
}

.notebook-image .app-shot {
  width: min(100%, 330px);
}

.margin-note {
  position: relative;
  max-width: none;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.margin-note h3 {
  margin-bottom: 8px;
  color: var(--sage-deep);
  font-family: var(--serif-text);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.12;
}

.margin-note p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.58;
}

.note-a {
  grid-column: 8 / 10;
  grid-row: 3;
}

.note-c {
  grid-column: 10 / 13;
  grid-row: 3;
}

.note-b {
  grid-column: 8 / 10;
  grid-row: 4;
}

.note-d {
  grid-column: 10 / 13;
  grid-row: 4;
}

/* Seeking essay */

.seeking-essay {
  padding-top: clamp(92px, 9vw, 122px);
  padding-bottom: clamp(74px, 7vw, 104px);
  background: var(--sage-wash);
  border-top: 1px solid rgba(79, 102, 83, 0.12);
  border-bottom: 1px solid rgba(79, 102, 83, 0.12);
}

.seeking-essay .editorial-grid {
  align-items: start;
}

.essay-statement {
  grid-column: 1 / 7;
  grid-row: 1;
  margin-bottom: 42px;
}

.k-seek {
  color: var(--sage);
}

.k-drift {
  color: var(--copper);
}

.essay-text {
  grid-column: 1 / 6;
  grid-row: 2;
  max-width: 560px;
}

.essay-text p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.68;
}

.essay-text .essay-definitions {
  margin-bottom: 30px;
  padding-left: 18px;
  border-left: 2px solid var(--copper-soft);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}

.essay-img-daily {
  grid-column: 7 / 11;
  grid-row: 1 / 3;
  justify-self: center;
  align-self: center;
  z-index: 2;
}

.essay-img-daily .app-shot {
  width: min(100%, 292px);
}

.essay-img-notebook {
  grid-column: 10 / 13;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  margin-bottom: -14px;
  z-index: 1;
}

.essay-img-notebook .app-shot {
  width: min(100%, 225px);
}

/* Privacy */

.privacy-interlude {
  padding: clamp(62px, 6vw, 82px) 0;
  background: var(--paper);
}

.privacy-interlude .editorial-frame {
  padding: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.privacy-interlude .editorial-grid > div {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: center;
  padding: 40px 0;
}

.privacy-statement {
  margin-bottom: 0;
  color: var(--ink) !important;
  font-family: var(--serif-text);
  font-size: clamp(30px, 2.9vw, 40px);
  line-height: 1.14;
}

.privacy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  position: relative;
  padding-left: 18px;
  color: var(--body);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.privacy-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 1px;
  background: var(--sage);
}

/* Instructions */

.instructions-spread {
  padding-block: 82px;
  background: var(--paper-light);
}

.instructions-spread .editorial-grid {
  align-items: center;
  row-gap: 18px;
}

.instructions-label {
  grid-column: 1 / 13;
  grid-row: 1;
}

.instructions-title {
  grid-column: 7 / 13;
  grid-row: 2;
  margin: 6px 0 20px;
}

.instructions-image {
  grid-column: 1 / 6;
  grid-row: 2 / 4;
  justify-self: center;
  align-self: center;
}

.instructions-image .app-shot {
  width: min(100%, 300px);
}

.instructions-steps {
  grid-column: 7 / 13;
  grid-row: 3;
  align-self: center;
}

.step-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: baseline;
  gap: 18px;
  min-height: 76px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}

.step-row:last-child {
  border-bottom: 1px solid var(--line);
}

.step-no {
  color: var(--copper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.step-row h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

/* Essay fragments */

.essay-fragments {
  padding: clamp(76px, 7vw, 100px) 0;
  background: #f1eadf;
  border-top: 1px solid rgba(165, 101, 63, 0.14);
  border-bottom: 1px solid rgba(165, 101, 63, 0.14);
}

.essay-fragments .editorial-grid {
  row-gap: 26px;
}

.essay-fragments > .editorial-frame > .editorial-statement {
  grid-column: 1 / 7;
  grid-row: 1;
}

.fragments-intro {
  grid-column: 1 / 7;
  grid-row: 2;
  max-width: 560px;
  margin: 8px 0 44px;
  font-size: 14px;
  line-height: 1.6;
}

.fragment {
  padding-top: 20px;
  border-top: 1px solid var(--copper-soft);
}

.fragment .editorial-label {
  margin-bottom: 14px;
  color: var(--copper) !important;
}

.fragment > p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 20px;
  line-height: 1.45;
}

.frag-1 {
  grid-column: 1 / 5;
  grid-row: 3;
  margin-top: 0;
}

.frag-2 {
  grid-column: 5 / 9;
  grid-row: 3;
  margin-top: 24px;
}

.frag-3 {
  grid-column: 9 / 13;
  grid-row: 3;
  margin-top: 48px;
}

/* Final CTA */

.final-download {
  padding: clamp(66px, 6vw, 88px) 0;
  background: var(--paper);
}

.final-download .editorial-grid {
  align-items: center;
}

.final-left {
  grid-column: 1 / 8;
}

.final-left h2 {
  margin-bottom: 8px;
  font-size: clamp(38px, 3.8vw, 54px);
  line-height: 1;
}

.final-left p {
  margin-bottom: 0;
  font-size: 16px;
}

.final-right {
  grid-column: 9 / 13;
  justify-self: end;
}

.btn-sage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--sage);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 160ms ease, transform 160ms ease;
}

.btn-sage:hover {
  background: var(--sage-deep);
  transform: translateY(-1px);
}

.btn-sage svg {
  width: 15px;
  height: 18px;
  flex: 0 0 auto;
}

/* Footer */

.decisions-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.decisions-footer .editorial-frame {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.footer-nav {
  justify-content: center;
}

.footer-nav a,
.footer-copyright {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-copyright {
  justify-self: end;
}

/* Large tablet */

@media (max-width: 1020px) {
  .editorial-frame {
    width: min(100% - 40px, 940px);
  }

  .editorial-grid {
    column-gap: 20px;
  }

  .hero-title {
    grid-column: 1 / 7;
  }

  .hero-intro,
  .hero-cta {
    grid-column: 1 / 7;
  }

  .hero-phones {
    grid-column: 7 / 13;
  }

  .hero-phones .app-shot {
    width: clamp(205px, 22vw, 255px);
  }

  .margin-note h3 {
    font-size: 20px;
  }

  .margin-note p {
    font-size: 15px;
  }

  .essay-img-daily .app-shot {
    width: min(100%, 260px);
  }

  .essay-img-notebook .app-shot {
    width: min(100%, 200px);
  }
}

/* Tablet and mobile */

@media (max-width: 780px) {
  .editorial-frame {
    width: calc(100% - 36px);
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .decisions-header .editorial-frame {
    min-height: 0;
    padding: 18px 0 14px;
    display: block;
  }

  .decisions-header nav {
    margin-top: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .decisions-header nav::-webkit-scrollbar {
    display: none;
  }

  .decisions-nav {
    width: max-content;
    min-width: 100%;
    gap: 22px;
  }

  .hero-composition {
    padding: 64px 0 58px;
  }

  .hero-title,
  .hero-intro,
  .hero-cta,
  .hero-phones,
  .hero-trust,
  .notebook-spread > .editorial-frame > .editorial-label,
  .notebook-title,
  .notebook-image,
  .note-a,
  .note-b,
  .note-c,
  .note-d,
  .essay-statement,
  .essay-text,
  .essay-img-daily,
  .essay-img-notebook,
  .instructions-label,
  .instructions-title,
  .instructions-image,
  .instructions-steps,
  .essay-fragments > .editorial-frame > .editorial-statement,
  .fragments-intro,
  .frag-1,
  .frag-2,
  .frag-3,
  .final-left,
  .final-right {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-title {
    font-size: clamp(52px, 14vw, 68px);
  }

  .hero-intro {
    margin-top: 28px;
    font-size: 17px;
  }

  .hero-phones {
    order: 4;
    min-height: 390px;
    margin-top: 46px;
    padding: 0;
  }

  .hero-phones .app-shot {
    width: min(56vw, 235px);
  }

  .hero-phones .phone-b {
    margin-left: -48px;
  }

  .hero-trust {
    margin-top: 42px;
  }

  .hero-trust p {
    line-height: 1.8;
  }

  .notebook-spread {
    padding: 70px 0 76px;
  }

  .notebook-title {
    margin: 6px 0 34px;
  }

  .notebook-image {
    margin-bottom: 44px;
  }

  .notebook-image .app-shot {
    width: min(82vw, 360px);
  }

  .margin-note {
    max-width: none;
    margin: 0 0 28px;
  }

  .note-b,
  .note-d {
    margin-top: 0;
  }

  .seeking-essay {
    padding: 74px 0 84px;
  }

  .essay-statement {
    margin-bottom: 34px;
    font-size: clamp(40px, 11vw, 54px);
  }

  .essay-text {
    max-width: none;
  }

  .essay-img-daily {
    justify-self: start;
    margin-top: 36px;
  }

  .essay-img-daily .app-shot {
    width: min(76vw, 290px);
  }

  .essay-img-notebook {
    justify-self: end;
    margin: -100px 0 0;
  }

  .essay-img-notebook .app-shot {
    width: min(56vw, 210px);
  }

  .privacy-interlude .editorial-grid > div {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 34px 0;
  }

  .privacy-list {
    grid-template-columns: 1fr 1fr;
  }

  .instructions-spread {
    padding: 74px 0 82px;
  }

  .instructions-title {
    margin: 6px 0 34px;
  }

  .instructions-image {
    margin-bottom: 48px;
  }

  .instructions-image .app-shot {
    width: min(82vw, 330px);
  }

  .step-row h3 {
    font-size: 21px;
  }

  .essay-fragments {
    padding: 74px 0 80px;
  }

  .fragments-intro {
    margin-bottom: 36px;
  }

  .fragment {
    margin: 0 0 32px;
  }

  .fragment > p:last-child {
    font-size: 19px;
  }

  .final-download {
    padding: 60px 0 66px;
  }

  .final-right {
    justify-self: start;
    margin-top: 28px;
  }

  .decisions-footer .editorial-frame {
    min-height: 0;
    padding: 28px 0;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .footer-copyright {
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .editorial-frame {
    width: calc(100% - 32px);
  }

  .decisions-nav {
    gap: 18px;
  }

  .decisions-nav a {
    font-size: 10px;
  }

  .hero-composition {
    padding-top: 54px;
  }

  .hero-title {
    font-size: clamp(48px, 15vw, 60px);
  }

  .hero-phones {
    min-height: 340px;
  }

  .hero-phones .app-shot {
    width: min(58vw, 210px);
  }

  .hero-phones .phone-b {
    margin-left: -46px;
  }

  .privacy-list {
    grid-template-columns: 1fr;
  }

  .btn-sage {
    width: 100%;
    padding-inline: 18px;
  }
}
