/* ============================================================
   Five Step Leap — v3 shared stylesheet
   System fonts only. No webfonts. No cookies.
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: #F4EAD0;
  background-image:
    radial-gradient(circle at 25% 35%, rgba(40, 20, 10, 0.025) 0, transparent 1.5px),
    radial-gradient(circle at 75% 65%, rgba(40, 20, 10, 0.022) 0, transparent 1.5px),
    radial-gradient(circle at 60% 15%, rgba(40, 20, 10, 0.020) 0, transparent 1.5px),
    radial-gradient(circle at 15% 85%, rgba(40, 20, 10, 0.018) 0, transparent 1px);
  background-size: 7px 7px, 9px 9px, 5px 5px, 4px 4px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Iowan Old Style", "Hoefler Text", "Times New Roman", serif;
  color: #2A2218;
  font-size: 17px;
  line-height: 1.65;
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(42, 34, 24, 0.40);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s;
}
a:hover, a:focus {
  text-decoration-color: rgba(42, 34, 24, 0.90);
  outline: none;
}

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

em, i { font-style: italic; }
strong, b { font-weight: 700; }

/* ============================================================
   SHARED — section labels
   ============================================================ */

.section-label {
  font-family: Menlo, Consolas, "Courier New", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: lowercase;
  color: rgba(42, 34, 24, 0.55);
  margin-bottom: 24px;
}

/* ============================================================
   CATALOG — top of every page
   ============================================================ */

.catalog {
  max-width: 580px;
  margin: 0 auto;
  padding: 48px 28px 24px;
  text-align: center;
}

.catalog-site {
  font-family: Georgia, "Iowan Old Style", "Hoefler Text", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: #1F1810;
  margin-bottom: 18px;
}

.catalog-family {
  font-family: Menlo, Consolas, "Courier New", monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: rgba(42, 34, 24, 0.50);
  margin-bottom: 12px;
}

.catalog-category {
  font-family: Menlo, Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: lowercase;
  color: rgba(42, 34, 24, 0.85);
  margin-bottom: 28px;
}

.course-list {
  list-style: none;
  display: inline-block;
  text-align: left;
}

.course-list li {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 17px;
  line-height: 2.0;
  color: rgba(42, 34, 24, 0.78);
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.course-list .code {
  font-family: Menlo, Consolas, "Courier New", monospace;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(42, 34, 24, 0.50);
  flex-shrink: 0;
  width: 32px;
}

.course-list a {
  text-decoration: underline;
  text-decoration-color: rgba(42, 34, 24, 0.20);
  text-underline-offset: 3px;
}
.course-list a:hover {
  text-decoration-color: rgba(42, 34, 24, 0.65);
}

.course-list li.current {
  font-weight: 700;
  color: #1F1810;
}

.course-list li.current .code {
  color: rgba(42, 34, 24, 0.85);
  font-weight: 700;
}

/* ============================================================
   COURSE — outer with dog-ear corner
   ============================================================ */

.course {
  max-width: 660px;
  margin: 0 auto;
  padding: 64px 28px 24px;
  position: relative;
}

.course-corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 88px;
  height: 88px;
  pointer-events: none;
}

.course-corner svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   PREVIEW — wide, generous, centered
   ============================================================ */

.preview {
  max-width: 540px;
  margin: 0 auto 12px;
  padding: 0 4px;
  text-align: center;
}

.preview .section-label {
  text-align: center;
}

.course-title {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: #1F1810;
  margin-bottom: 36px;
}

.preview-example {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: #1F1810;
  margin: 0 auto 20px;
  max-width: 460px;
}

.preview-example p { margin-bottom: 0.4em; }
.preview-example p:last-child { margin-bottom: 0; }

.preview-mid {
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  color: rgba(42, 34, 24, 0.62);
  margin: 18px 0;
}

.preview-unpack {
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.65;
  color: #2A2218;
  max-width: 440px;
  margin: 0 auto;
}

/* ============================================================
   ASTERISM divider
   ============================================================ */

.asterism {
  text-align: center;
  font-family: Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.4em;
  color: rgba(42, 34, 24, 0.45);
  margin: 56px 0 48px;
  user-select: none;
}

/* ============================================================
   FULL CLASS — narrower column
   ============================================================ */

.full {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 4px;
}

.gasp {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.4;
  color: #1F1810;
  border-left: 2px solid rgba(42, 34, 24, 0.40);
  padding: 4px 0 4px 18px;
  margin-bottom: 28px;
}

.jolt {
  font-size: 17px;
  line-height: 1.7;
  color: #2A2218;
  margin-bottom: 36px;
}

.jolt p { margin-bottom: 0.8em; }
.jolt p:last-child { margin-bottom: 0; }

/* drop cap */
.jolt > p:first-child::first-letter {
  font-family: Georgia, "Hoefler Text", serif;
  font-size: 3.6em;
  font-weight: 400;
  float: left;
  line-height: 0.85;
  margin: 6px 8px 0 0;
  color: #1F1810;
}

.course-image {
  margin: 0 -28px 36px;
}
.course-image img { width: 100%; }

.x-ray-intro {
  font-size: 16.5px;
  line-height: 1.7;
  color: #2A2218;
  font-style: italic;
  margin-bottom: 36px;
  padding: 0 4px;
}

.days {
  list-style: none;
  margin-bottom: 32px;
}

.day {
  margin-bottom: 44px;
}

.day:last-child { margin-bottom: 0; }

/* roman numeral + title — flex layout so III doesn't crash into the title */
.day-title {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  color: #1F1810;
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.day-roman {
  flex-shrink: 0;
  width: 42px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.day-tech {
  font-size: 17px;
  line-height: 1.65;
  color: #2A2218;
  margin-bottom: 16px;
}

.day-example {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: #1F1810;
  border-left: 2px solid rgba(42, 34, 24, 0.30);
  padding: 6px 0 6px 18px;
  margin: 0 0 16px 14px;
  background: rgba(232, 220, 176, 0.20);
}

.day-example p { margin-bottom: 0.4em; }
.day-example p:last-child { margin-bottom: 0; }

.day-unpack {
  font-size: 16.5px;
  line-height: 1.7;
  color: #2A2218;
  margin-bottom: 18px;
}

.day-exercise {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(42, 34, 24, 0.85);
  border-top: 1px dotted rgba(42, 34, 24, 0.30);
  padding-top: 14px;
  margin-top: 8px;
}

.day-exercise-label {
  font-family: Menlo, Consolas, "Courier New", monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: lowercase;
  color: rgba(42, 34, 24, 0.55);
  font-style: normal;
  margin-right: 0.8em;
  vertical-align: 1px;
}

.full-coda {
  font-size: 16.5px;
  line-height: 1.7;
  color: #2A2218;
  font-style: italic;
  border-top: 1px solid rgba(42, 34, 24, 0.18);
  padding-top: 28px;
  margin-top: 36px;
}

.full-coda p { margin-bottom: 0.7em; }
.full-coda p:last-child { margin-bottom: 0; }

/* ============================================================
   SIGNUP — tonal shift "card pressed into paper"
   ============================================================ */

.signup-wrap {
  max-width: 660px;
  margin: 56px auto 0;
  padding: 0 28px;
}

.signup {
  background: #ECDDB0;
  padding: 32px 28px;
  text-align: center;
  box-shadow: inset 0 1px 2px rgba(60, 40, 20, 0.08),
              inset 0 -1px 2px rgba(60, 40, 20, 0.05);
  border-radius: 2px;
}

.signup .section-label {
  text-align: center;
  margin-bottom: 22px;
}

.signup-line {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  color: #1F1810;
  margin-bottom: 14px;
  word-break: break-word;
}

.manicule {
  display: inline-block;
  margin-right: 0.5em;
  color: rgba(42, 34, 24, 0.65);
  vertical-align: -1px;
}

.signup-line a {
  text-decoration-color: rgba(42, 34, 24, 0.60);
}
.signup-line a strong { font-weight: 600; }
.signup-line .subject { white-space: nowrap; }

.signup-followup {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(42, 34, 24, 0.78);
  max-width: 380px;
  margin: 0 auto 14px;
}

.signup-fineprint {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(42, 34, 24, 0.55);
  max-width: 380px;
  margin: 16px auto 0;
  padding-top: 14px;
  border-top: 1px dotted rgba(42, 34, 24, 0.25);
}

/* ============================================================
   ABOUT KIRAN
   ============================================================ */

.about {
  max-width: 580px;
  margin: 80px auto 0;
  padding: 56px 28px 24px;
  text-align: center;
  border-top: 1px solid rgba(42, 34, 24, 0.18);
}

.about .section-label {
  text-align: center;
  margin-bottom: 20px;
}

.about p {
  font-family: Georgia, serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: #2A2218;
  max-width: 460px;
  margin: 0 auto 0.9em;
}
.about p:last-child { margin-bottom: 0; }

.about .arrow-link {
  margin-top: 1.4em;
  font-style: italic;
  color: rgba(42, 34, 24, 0.85);
}

/* ============================================================
   BACK TO TOP — small anchor link near the bottom
   ============================================================ */

.back-to-top {
  max-width: 580px;
  margin: 56px auto 0;
  padding: 0 28px;
  text-align: center;
  font-family: Menlo, Consolas, "Courier New", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: lowercase;
  color: rgba(42, 34, 24, 0.55);
}

.back-to-top a {
  text-decoration-color: rgba(42, 34, 24, 0.30);
}
.back-to-top a:hover {
  text-decoration-color: rgba(42, 34, 24, 0.85);
}

/* ============================================================
   FOOTER
   ============================================================ */

.page-footer {
  max-width: 580px;
  margin: 56px auto 0;
  padding: 36px 28px 56px;
  text-align: center;
  font-family: Menlo, Consolas, "Courier New", monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.30em;
  text-transform: lowercase;
  color: rgba(42, 34, 24, 0.45);
  line-height: 1.9;
}

.page-footer .second {
  display: block;
  margin-top: 4px;
  color: rgba(42, 34, 24, 0.35);
}

/* ============================================================
   DESKTOP / WIDER SCREENS
   ============================================================ */

@media (min-width: 720px) {

  body { font-size: 18px; }

  .catalog {
    max-width: 640px;
    padding: 64px 32px 28px;
  }

  .catalog-site { font-size: 26px; margin-bottom: 22px; }
  .catalog-family { font-size: 10px; }
  .catalog-category { font-size: 12px; margin-bottom: 36px; }
  .course-list li { font-size: 19px; line-height: 2.1; gap: 18px; }
  .course-list .code { font-size: 13px; width: 38px; }

  .course {
    max-width: 720px;
    padding: 80px 32px 32px;
  }

  .course-corner { width: 100px; height: 100px; }

  .preview { max-width: 580px; }
  .course-title { font-size: 44px; }
  .preview-example { font-size: 26px; max-width: 520px; }
  .preview-mid { font-size: 16px; }
  .preview-unpack { font-size: 17px; max-width: 480px; }

  .asterism { margin: 72px 0 60px; font-size: 26px; }

  .full { max-width: 580px; }

  .gasp { font-size: 24px; padding-left: 22px; }
  .jolt { font-size: 18px; }
  .jolt > p:first-child::first-letter { font-size: 3.8em; margin-right: 10px; }

  .course-image { margin: 0 0 44px; }

  .x-ray-intro { font-size: 17.5px; }

  .day { margin-bottom: 52px; }
  .day-title { font-size: 21px; gap: 12px; }
  .day-roman { width: 48px; }
  .day-tech { font-size: 18px; }
  .day-example { font-size: 19px; padding-left: 22px; }
  .day-unpack { font-size: 17.5px; }
  .day-exercise { font-size: 17px; }
  .day-exercise-label { font-size: 10px; }

  .full-coda { font-size: 17.5px; }

  .signup-wrap {
    max-width: 720px;
    padding: 0 32px;
    margin-top: 64px;
  }

  .signup { padding: 40px 36px; }
  .signup-line { font-size: 20px; }
  .signup-followup { font-size: 16px; }
  .signup-fineprint { font-size: 13.5px; }

  .about { max-width: 640px; padding: 64px 32px 32px; }
  .about p { font-size: 17.5px; }

  .back-to-top { font-size: 11px; max-width: 640px; padding: 0 32px; }

  .page-footer { font-size: 10px; }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
  html, body { background: #F4EAD0; color: #1A1410; }
  .signup { background: #ECDDB0 !important; box-shadow: none; }
  .course-corner { display: none; }
  a { text-decoration: none; }
}

/* ============================================================
   small phones
   ============================================================ */

@media (max-width: 380px) {
  .course-title { font-size: 24px; }
  .preview-example { font-size: 19px; }
  .gasp { font-size: 18px; }
  .day-title { font-size: 17px; }
  .signup-line { font-size: 16px; }
  .course-list li { font-size: 16px; gap: 12px; }
}
