/* =========================================================
   TEACHER CONSTELLATION
   Cream • Black • Yellow
========================================================= */

:root {
  --cream: #f7f0dd;
  --cream-light: #fffaf0;
  --cream-dark: #e9dfc6;

  --yellow: #f6c945;
  --yellow-light: #ffe58a;
  --yellow-dark: #d9a919;

  --ink: #171713;
  --ink-soft: #37372f;

  --grey: #706f65;
  --line: rgba(23, 23, 19, 0.18);

  --white: #fffdf7;

  --shadow:
    8px 8px 0 rgba(23, 23, 19, 0.13);

  --soft-shadow:
    0 20px 60px rgba(28, 26, 17, 0.10);

  --serif:
    "Fraunces",
    Georgia,
    serif;

  --sans:
    "DM Sans",
    Arial,
    sans-serif;

  --hand:
    "Caveat",
    cursive;
}


/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(246, 201, 69, 0.14),
      transparent 25%
    ),
    var(--cream);

  color: var(--ink);

  font-family: var(--sans);

  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
p {
  margin-top: 0;
}

.mini-label {
  margin-bottom: 18px;

  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.16em;

  text-transform: uppercase;
}

.handwritten {
  display: inline-block;

  font-family: var(--hand);

  font-size: 1.35rem;

  transform: rotate(-2deg);
}


/* =========================================================
   HERO
========================================================= */

.teacher-hero {
  position: relative;

  min-height: 760px;

  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(300px, 0.85fr);

  align-items: center;

  gap: 70px;

  max-width: 1400px;

  margin: 0 auto;

  padding:
    110px
    clamp(25px, 6vw, 100px)
    90px;
}


.teacher-hero::after {
  content: "";

  position: absolute;

  left: 6%;
  right: 6%;
  bottom: 0;

  height: 2px;

  background: var(--ink);
}


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


.teacher-hero h1 {
  margin-bottom: 30px;

  font-family: var(--serif);

  font-size:
    clamp(4rem, 8vw, 8.5rem);

  font-weight: 600;

  line-height: 0.84;

  letter-spacing: -0.07em;
}


.teacher-hero h1 span {
  position: relative;

  display: inline-block;

  padding: 5px 18px 12px;

  background: var(--yellow);

  transform: rotate(-1deg);
}


.hero-text {
  max-width: 640px;

  font-size:
    clamp(1.1rem, 1.7vw, 1.35rem);

  line-height: 1.65;
}


.hero-text.secondary {
  color: var(--grey);

  font-size: 1rem;
}


.hero-buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 14px;

  margin-top: 35px;
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 52px;

  padding: 13px 22px;

  border: 2px solid var(--ink);

  color: var(--ink);

  text-decoration: none;

  font-size: 0.9rem;

  font-weight: 700;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}


.button:hover {
  transform: translate(-3px, -3px);

  box-shadow:
    6px 6px 0 var(--ink);
}


.button-dark {
  background: var(--ink);

  color: var(--cream);
}


.button-yellow {
  background: var(--yellow);
}


/* =========================================================
   STICKY NOTE
========================================================= */

.hero-note {
  display: flex;

  align-items: center;
  justify-content: center;
}


.sticky-note {
  position: relative;

  width: min(390px, 90%);

  padding: 60px 40px 45px;

  background: var(--yellow);

  border: 2px solid var(--ink);

  box-shadow:
    12px 12px 0 var(--ink);

  transform: rotate(3deg);
}


.sticky-note .tape {
  position: absolute;

  width: 115px;
  height: 35px;

  top: -17px;
  left: 50%;

  transform:
    translateX(-50%)
    rotate(-3deg);

  background:
    rgba(255, 251, 224, 0.75);

  border-left: 1px solid
    rgba(0,0,0,0.08);

  border-right: 1px solid
    rgba(0,0,0,0.08);
}


.sticky-small {
  margin-bottom: 15px;

  font-size: 0.75rem;

  font-weight: 800;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}


.sticky-note strong {
  display: block;

  font-family: var(--serif);

  font-size: clamp(1.7rem, 3vw, 2.7rem);

  line-height: 1.12;
}


.sticky-scribble {
  display: block;

  margin-top: 25px;

  font-family: var(--hand);

  font-size: 1.2rem;
}


.hero-doodle {
  position: absolute;

  font-family: var(--hand);

  font-size: 3rem;
}


.doodle-one {
  left: 4%;
  top: 18%;

  transform: rotate(-20deg);
}


.doodle-two {
  right: 8%;
  bottom: 10%;

  font-size: 4rem;
}


/* =========================================================
   TRUTH STRIP
========================================================= */

.truth-strip {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  max-width: 1300px;

  margin:
    80px auto
    140px;

  border:
    2px solid var(--ink);
}


.truth-item {
  min-height: 170px;

  padding: 28px;

  display: flex;

  flex-direction: column;

  justify-content:
    space-between;

  border-right:
    2px solid var(--ink);
}


.truth-item:last-child {
  border-right: 0;
}


.truth-item.yellow {
  background: var(--yellow);
}


.truth-item span {
  font-size: 0.75rem;

  font-weight: 800;
}


.truth-item p {
  margin: 35px 0 0;

  max-width: 310px;

  font-family: var(--serif);

  font-size: 1.45rem;

  line-height: 1.25;
}


/* =========================================================
   STORY INTRO
========================================================= */

.stories-intro {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 80px;

  max-width: 1220px;

  margin: 0 auto;

  padding:
    30px
    clamp(25px, 5vw, 70px)
    70px;
}


.stories-intro h2 {
  margin: 0;

  font-family: var(--serif);

  font-size:
    clamp(2.8rem, 5vw, 5.5rem);

  line-height: 0.98;

  letter-spacing: -0.05em;
}


.intro-copy {
  align-self: end;

  max-width: 500px;

  font-size: 1.08rem;

  line-height: 1.7;
}


.intro-copy .handwritten {
  margin-top: 14px;
}


/* =========================================================
   BLOG GRID
========================================================= */

.blog-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 28px;

  max-width: 1220px;

  margin: 0 auto;

  padding:
    0
    clamp(25px, 5vw, 70px)
    120px;
}


.blog-card {
  position: relative;

  min-height: 470px;

  display: flex;

  flex-direction: column;

  padding: 35px;

  background: var(--cream-light);

  border: 2px solid var(--ink);

  box-shadow: var(--shadow);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}


.blog-card:nth-child(2) {
  transform: rotate(0.7deg);
}


.blog-card:nth-child(3) {
  transform: rotate(-0.6deg);
}


.blog-card:hover {
  transform: translateY(-5px) rotate(0);

  box-shadow:
    12px 12px 0 var(--ink);
}


.blog-card-yellow {
  background: var(--yellow);
}


.blog-card-black {
  background: var(--ink);

  color: var(--cream);
}


.blog-top {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 40px;
}


.story-tag {
  padding: 7px 11px;

  border: 1.5px solid currentColor;

  font-size: 0.65rem;

  font-weight: 800;

  letter-spacing: 0.13em;
}


.story-number {
  font-family: var(--hand);

  font-size: 1.3rem;
}


.blog-card h3 {
  margin-bottom: 18px;

  max-width: 520px;

  font-family: var(--serif);

  font-size:
    clamp(2rem, 4vw, 3.3rem);

  line-height: 1;

  letter-spacing: -0.04em;
}


.story-preview {
  max-width: 520px;

  font-size: 1.05rem;

  line-height: 1.6;
}


.story-hidden {
  display: none;

  margin-top: 8px;

  animation:
    storyAppear
    300ms ease;
}


.story-hidden p {
  line-height: 1.72;
}


.blog-card.open
.story-hidden {
  display: block;
}


.blog-card.open
.story-preview {
  display: none;
}


@keyframes storyAppear {

  from {
    opacity: 0;

    transform:
      translateY(10px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }

}


.read-story {
  width: fit-content;

  margin-top: auto;

  padding:
    13px 0
    5px;

  background: transparent;

  border: 0;

  border-bottom:
    2px solid currentColor;

  color: inherit;

  font-weight: 800;
}


.story-footer {
  display: flex;

  justify-content:
    space-between;

  gap: 15px;

  margin-top: 28px;

  padding-top: 18px;

  border-top:
    1px solid currentColor;

  font-size: 0.74rem;

  opacity: 0.75;
}


/* =========================================================
   MIDDLE QUOTE
========================================================= */

.middle-quote {
  max-width: 1000px;

  margin:
    50px auto
    160px;

  padding:
    70px
    clamp(30px, 8vw, 100px);

  text-align: center;
}


.quote-mark {
  display: block;

  height: 80px;

  font-family: var(--serif);

  font-size: 8rem;

  line-height: 1;

  color: var(--yellow-dark);
}


.middle-quote p {
  font-family: var(--serif);

  font-size:
    clamp(2rem, 4vw, 4rem);

  line-height: 1.16;

  letter-spacing: -0.04em;
}


.middle-quote
.handwritten {
  margin-top: 15px;
}


/* =========================================================
   SHARE SECTION
========================================================= */

.share-section {
  position: relative;

  display: grid;

  grid-template-columns:
    0.7fr 1.3fr;

  gap: 70px;

  padding:
    110px
    clamp(25px, 7vw, 110px)
    140px;

  background: var(--yellow);
}


.share-section::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 12px;

  background:
    repeating-linear-gradient(
      90deg,
      var(--ink) 0,
      var(--ink) 30px,
      transparent 30px,
      transparent 58px
    );
}


.share-heading {
  max-width: 470px;
}


.share-heading h2 {
  font-family: var(--serif);

  font-size:
    clamp(3rem, 5vw, 5.5rem);

  line-height: 0.94;

  letter-spacing: -0.06em;
}


.share-heading h2 span {
  display: block;

  font-family: var(--hand);

  font-size: 0.55em;

  letter-spacing: normal;

  transform: rotate(-2deg);
}


.share-heading > p {
  font-size: 1.08rem;

  line-height: 1.7;
}


.email-note {
  margin-top: 40px;

  padding-top: 20px;

  border-top:
    2px solid var(--ink);
}


.email-note span {
  display: block;

  margin-bottom: 7px;

  font-size: 0.75rem;

  font-weight: 800;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}


.email-note a {
  font-family: var(--serif);

  font-size: 1.35rem;

  font-weight: 600;
}


/* =========================================================
   POSTCARD
========================================================= */

.postcard-wrapper {
  position: relative;

  min-height: 650px;
}


.postcard {
  display: grid;

  grid-template-columns:
    1.1fr 2px 0.9fr;

  min-height: 610px;

  padding: 25px;

  background: var(--cream-light);

  border: 2px solid var(--ink);

  box-shadow:
    15px 15px 0 var(--ink);

  transform: rotate(0.7deg);

  transition:
    opacity 300ms ease,
    transform 300ms ease;
}


.postcard-message,
.postcard-address {
  padding: 25px;
}


.postcard-divider {
  background:
    repeating-linear-gradient(
      to bottom,
      var(--ink) 0,
      var(--ink) 8px,
      transparent 8px,
      transparent 15px
    );

  opacity: 0.35;
}


.postcard-heading {
  display: flex;

  align-items: center;

  justify-content:
    space-between;

  margin-bottom: 25px;
}


.postcard-small {
  font-size: 0.68rem;

  font-weight: 800;

  letter-spacing: 0.16em;
}


.postcard-doodle {
  font-size: 2rem;
}


.postcard-message
label > span {
  display: block;

  margin-bottom: 12px;

  font-family: var(--hand);

  font-size: 1.6rem;
}


.postcard-message textarea {
  width: 100%;

  min-height: 300px;

  resize: vertical;

  padding: 15px;

  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      rgba(23, 23, 19, 0.17) 32px
    );

  border: 0;

  outline: 0;

  color: var(--ink);

  font-family: var(--hand);

  font-size: 1.35rem;

  line-height: 32px;
}


.postcard-message
textarea::placeholder {
  color:
    rgba(23, 23, 19, 0.4);
}


.reflection-prompts {
  margin-top: 25px;
}


.reflection-prompts p {
  margin-bottom: 10px;

  font-size: 0.75rem;

  font-weight: 800;

  text-transform: uppercase;
}


.reflection-prompts span {
  display: inline-block;

  margin:
    4px 4px 4px 0;

  padding:
    5px 8px;

  background:
    var(--yellow-light);

  font-size: 0.72rem;
}


/* =========================================================
   STAMP
========================================================= */

.postcard-address {
  position: relative;

  padding-top: 130px;
}


.stamp {
  position: absolute;

  top: 18px;
  right: 20px;

  width: 92px;
  height: 110px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 3px;

  background: var(--yellow);

  border: 2px dashed var(--ink);

  text-align: center;

  transform: rotate(3deg);
}


.stamp-star {
  font-size: 1.4rem;
}


.stamp strong {
  font-family: var(--serif);

  font-size: 1.1rem;
}


.stamp small {
  font-size: 0.5rem;

  font-weight: 800;

  letter-spacing: 0.08em;
}


.postmark {
  position: absolute;

  top: 37px;
  left: 20px;

  width: 130px;
  height: 75px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  border:
    2px solid rgba(23,23,19,0.5);

  border-radius: 50%;

  text-align: center;

  transform: rotate(-9deg);

  opacity: 0.65;
}


.postmark span {
  font-size: 0.55rem;

  font-weight: 800;

  letter-spacing: 0.08em;
}


.postmark small {
  font-size: 0.5rem;
}


/* =========================================================
   POSTCARD FIELDS
========================================================= */

.postcard-field {
  display: block;

  margin-bottom: 22px;
}


.postcard-field > span {
  display: block;

  margin-bottom: 8px;

  font-size: 0.71rem;

  font-weight: 800;

  letter-spacing: 0.06em;

  text-transform: uppercase;
}


.postcard-field small {
  text-transform: none;

  font-weight: 500;
}


.postcard-field input,
.postcard-field select {
  width: 100%;

  padding:
    11px
    4px;

  background: transparent;

  border: 0;

  border-bottom:
    1.5px solid var(--ink);

  outline: none;
}


.permission-check {
  display: grid;

  grid-template-columns:
    20px 1fr;

  gap: 10px;

  margin-top: 25px;

  font-size: 0.78rem;

  line-height: 1.45;
}


.permission-check input {
  margin-top: 3px;

  accent-color: var(--ink);
}


.privacy-small {
  margin-top: 17px;

  font-size: 0.68rem;

  line-height: 1.5;

  color: var(--grey);
}


.post-button {
  width: 100%;

  display: flex;

  align-items: center;

  justify-content:
    space-between;

  margin-top: 24px;

  padding:
    15px
    18px;

  background: var(--ink);

  border: 2px solid var(--ink);

  color: var(--cream);

  font-weight: 800;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}


.post-button:hover {
  transform:
    translate(-3px, -3px);

  box-shadow:
    5px 5px 0
    var(--yellow-dark);
}


/* =========================================================
   SENT POSTCARD
========================================================= */

.postcard-sent {
  position: absolute;

  inset: 0;

  display: none;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  padding:
    50px;

  background: var(--cream-light);

  border: 2px solid var(--ink);

  box-shadow:
    15px 15px 0 var(--ink);

  text-align: center;

  transform: rotate(-1deg);
}


.postcard-sent.visible {
  display: flex;

  animation:
    sentCard
    550ms
    cubic-bezier(
      0.2,
      0.8,
      0.2,
      1
    );
}


@keyframes sentCard {

  from {
    opacity: 0;

    transform:
      scale(0.8)
      rotate(-8deg)
      translateY(60px);
  }

  to {
    opacity: 1;

    transform:
      scale(1)
      rotate(-1deg)
      translateY(0);
  }

}


.sent-postmark {
  width: 170px;
  height: 105px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  margin-bottom: 20px;

  border:
    4px double
    var(--ink);

  border-radius: 50%;

  transform: rotate(-9deg);
}


.sent-postmark span {
  font-size: 1.35rem;

  font-weight: 900;

  letter-spacing: 0.1em;
}


.sent-postmark small {
  font-size: 0.55rem;

  font-weight: 700;
}


.sent-star {
  font-size: 2.2rem;
}


.sent-small {
  margin-top: 16px;

  font-size: 0.68rem;

  font-weight: 800;

  letter-spacing: 0.16em;
}


.postcard-sent h3 {
  margin:
    5px 0
    20px;

  font-family: var(--serif);

  font-size:
    clamp(2.7rem, 5vw, 5rem);

  letter-spacing: -0.05em;
}


.postcard-sent p {
  max-width: 490px;

  line-height: 1.6;
}


.postcard-sent blockquote {
  margin:
    15px 0
    30px;

  font-family: var(--hand);

  font-size: 1.7rem;
}


.send-another {
  padding:
    12px 18px;

  background: var(--yellow);

  border:
    2px solid var(--ink);

  font-weight: 800;
}


/* =========================================================
   CLOSING
========================================================= */

.teacher-closing {
  max-width: 1100px;

  margin: 0 auto;

  padding:
    150px
    clamp(25px, 7vw, 90px);

  text-align: center;
}


.closing-star {
  display: block;

  margin-bottom: 25px;

  font-size: 3rem;
}


.teacher-closing h2 {
  font-family: var(--serif);

  font-size:
    clamp(2.8rem, 5vw, 5rem);

  line-height: 1;

  letter-spacing: -0.055em;
}


.teacher-closing > p {
  font-size: 1.2rem;
}


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

.teacher-footer {
  display: grid;

  grid-template-columns:
    1fr auto auto;

  gap: 30px;

  align-items: center;

  padding:
    35px
    clamp(25px, 7vw, 100px);

  background: var(--ink);

  color: var(--cream);

  font-size: 0.8rem;
}


.teacher-footer div {
  display: flex;

  flex-direction: column;

  gap: 3px;
}


.teacher-footer a {
  color: var(--yellow);

  font-weight: 700;
}


/* =========================================================
   REVEAL
========================================================= */

.reveal-item {
  opacity: 0;

  transform:
    translateY(25px);

  transition:
    opacity 600ms ease,
    transform 600ms ease;
}


.reveal-item.visible {
  opacity: 1;

  transform:
    translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

  .teacher-hero {
    grid-template-columns: 1fr;

    min-height: auto;

    gap: 80px;
  }


  .hero-note {
    justify-content:
      flex-start;
  }


  .truth-strip {
    margin-left: 25px;
    margin-right: 25px;
  }


  .stories-intro {
    grid-template-columns: 1fr;

    gap: 35px;
  }


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


  .share-section {
    grid-template-columns: 1fr;
  }


  .share-heading {
    max-width: 700px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .teacher-hero {
    padding:
      80px 22px
      70px;
  }


  .teacher-hero h1 {
    font-size:
      clamp(3.6rem, 18vw, 5.5rem);
  }


  .hero-buttons {
    flex-direction: column;
  }


  .button {
    width: 100%;
  }


  .sticky-note {
    width: 92%;

    padding:
      50px 28px
      35px;
  }


  .truth-strip {
    grid-template-columns: 1fr;

    margin-bottom: 100px;
  }


  .truth-item {
    border-right: 0;

    border-bottom:
      2px solid var(--ink);
  }


  .truth-item:last-child {
    border-bottom: 0;
  }


  .stories-intro {
    padding:
      25px
      22px
      50px;
  }


  .blog-grid {
    padding:
      0
      22px
      100px;
  }


  .blog-card {
    min-height: 430px;

    padding: 26px;
  }


  .story-footer {
    flex-direction: column;
  }


  .middle-quote {
    margin-bottom: 80px;

    padding:
      50px
      25px;
  }


  .share-section {
    padding:
      90px
      20px
      110px;
  }


  .postcard-wrapper {
    min-height: 1050px;
  }


  .postcard {
    grid-template-columns: 1fr;

    transform: none;
  }


  .postcard-divider {
    width: 100%;
    height: 2px;

    background:
      repeating-linear-gradient(
        90deg,
        var(--ink) 0,
        var(--ink) 8px,
        transparent 8px,
        transparent 15px
      );
  }


  .postcard-message,
  .postcard-address {
    padding:
      24px 15px;
  }


  .postcard-address {
    padding-top: 140px;
  }


  .postcard-sent {
    padding:
      35px 22px;
  }


  .teacher-closing {
    padding:
      110px
      25px;
  }


  .teacher-footer {
    grid-template-columns: 1fr;

    text-align: center;
  }

}
