/* Homepage only: Pintop's navy, gold and paper palette. */
.home-page {
  --home-ink: #203c60;
  --home-muted: #62665f;
  --home-gold: #ac791e;
  --color-primary: #203c60;
  --color-primary-hover: #142c49;
  --color-primary-light: #edf0f3;
  background: #faf8f2;
  color: var(--home-ink);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.home-page .container { max-width: 1240px; padding-inline: 44px; }
.home-page h1, .home-page h2, .home-page h3 { color: var(--home-ink); text-wrap: balance; }
.home-page a:focus-visible, .home-page button:focus-visible { outline: 3px solid var(--home-gold); outline-offset: 5px; }
.home-skip-link { position: absolute; left: 24px; top: -80px; z-index: 20; padding: 12px 20px; background: var(--home-ink); color: white; }
.home-skip-link:focus { top: 12px; color: white; }

/* Navigation */
.home-page .navbar { background: transparent !important; box-shadow: none; border: 0; padding: 27px 0; margin-bottom: 0 !important; }
.home-page .navbar > .container { align-items: center; }
.home-page .navbar-brand { display: flex; align-items: center; gap: 12px; margin: 0; }
.home-page .navbar-brand img { object-fit: contain; }
.home-brand-name { font-family: Georgia, 'Times New Roman', serif; font-size: 29px; font-weight: 700; line-height: 1; letter-spacing: -.7px; }
.home-brand-name > span {
  display: block; margin-top: 7px; font-family: var(--font-family); font-size: 10px;
  font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase;
}
.home-page .navbar-nav { align-items: center; gap: 20px; }
.home-page .nav-link { font-size: 13px; color: var(--home-ink) !important; }
.home-page .nav-link.home-nav-login { border: 1px solid #cdd2d0; border-radius: 5px; padding: 10px 18px !important; }
.home-nav-login i { margin: 0 0 0 20px; font-size: 11px; }
.home-main { flex: 1; }
.home-eyebrow { color: var(--home-gold); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 25px; }

/* Writing introduction */
.writing-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 55px; padding: 42px 0 68px; }
.writing-hero-copy { padding-bottom: 18px; }
.writing-hero-copy .home-eyebrow { display: flex; align-items: center; gap: 10px; }
.writing-hero-copy .home-eyebrow > span { width: 22px; height: 1px; background: var(--home-gold); }
.writing-hero h1 {
  font-family: Georgia, 'Times New Roman', serif; font-size: clamp(46px, 4.5vw, 65px);
  line-height: 1.08; font-weight: 400; letter-spacing: -2.6px; margin-bottom: 26px;
}
.writing-hero h1 em { color: var(--home-gold); font-weight: 400; }
.hero-description { color: var(--home-muted); max-width: 390px; font-size: 15px; line-height: 1.85; margin-bottom: 30px; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; }
.home-primary-action {
  display: inline-flex; justify-content: center; align-items: center; gap: 24px; background: var(--home-ink);
  color: white; padding: 16px 21px; border-radius: 5px; font-size: 12px; font-weight: 500; text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}
.home-primary-action:hover { background: var(--color-primary-hover); color: white; transform: translateY(-2px); }
.home-primary-action:active { transform: translateY(1px); }
.home-primary-action i { font-size: 11px; }
.home-text-link { color: var(--home-ink); font-size: 12px; text-decoration: none; text-underline-offset: 5px; }
.home-text-link:hover { color: var(--home-ink); text-decoration: underline; }
.home-text-link span { font-size: 17px; margin-left: 7px; }
.hero-footnote { color: var(--home-muted); font-size: 10px; margin: 16px 0 0; }

/* Book cover, using the supplied Pintop emblem. */
.writing-hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 450px; padding-top: 28px; margin: 0; background: #eeeade; border-radius: 48% 48% 6px 6px; }
.visual-orbit { position: absolute; inset: 18px; border: 1px solid #dbd5c6; border-radius: inherit; }
.writing-cover {
  position: relative; width: 76%; padding: 25px 18px 55px; background: #fffdf7; border: 1px solid #e6dece;
  box-shadow: 8px 9px 0 #e1d8c5, 16px 22px 32px #6152391a; text-align: center; transform: rotate(-5deg);
}
.cover-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 2.5px; }
.writing-cover img { display: block; width: 48%; height: auto; margin: 20px auto 17px; }
.writing-cover p { font-family: Georgia, 'Times New Roman', serif; font-size: 32px; line-height: 1.22; letter-spacing: -1px; margin: 0; }
.writing-cover em { color: var(--home-gold); }
.writing-margin-note {
  position: relative; align-self: flex-end; margin-top: -15px; margin-bottom: -12px; right: -17px; padding: 22px 27px 17px; background: #203c60; color: #fcfaf3;
  box-shadow: 0 7px 16px #203c6014; font-family: Georgia, 'Times New Roman', serif; font-size: 20px; line-height: 1.45; transform: rotate(3deg);
}
.margin-note-label { display: block; font-family: var(--font-family); font-size: 8px; font-weight: 500; letter-spacing: .6px; color: #dfc98d; margin-bottom: 10px; }
.margin-note-line { display: block; width: 41px; height: 2px; background: #dfc98d; margin-top: 13px; transform: rotate(-3deg); }

.home-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 23px; border-top: 1px solid #dddcd1; color: var(--home-muted); font-size: 9px; }
.footer-divider { color: #c2b595; margin: 0 9px; }
.footer-motto { font-family: Georgia, 'Times New Roman', serif; font-size: 12px; font-style: italic; color: var(--home-gold); }

/* Existing student and teacher homepage tables. */
.home-workspace { padding: 44px 0 60px; }
.workspace-heading { margin-bottom: 38px; }
.workspace-heading .home-eyebrow { margin-bottom: 15px; }
.workspace-heading h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(32px, 3.5vw, 48px); font-weight: 400; letter-spacing: -1.3px; margin-bottom: 15px; }
.workspace-heading > p:last-child { font-size: 14px; color: var(--home-muted); margin: 0; }
.workspace-submissions { border-top: 1px solid #dddcd1; padding-top: 24px; }
.workspace-submissions h2 { display: flex; align-items: center; gap: 12px; font-size: 16px; letter-spacing: 0; }
.submission-count { padding: 3px 9px; background: #eeeade; border-radius: 4px; font-size: 11px; }
.home-workspace .table { box-shadow: none; }
.home-workspace .table thead th { background: #f0eee6; }

@media (max-width: 1100px) {
  .home-page .container { padding-inline: 32px; }
  .writing-hero { gap: 35px; }
  .hero-actions { gap: 18px; }
  .writing-hero-visual { min-height: 410px; }
  .writing-cover p { font-size: 28px; }
  .writing-margin-note { right: -5px; padding: 18px 22px; font-size: 18px; }
}
@media (max-width: 767px) {
  .home-page .container { padding-inline: 24px; }
  .home-page .navbar { padding: 20px 0; }
  .home-page .navbar-nav { align-items: stretch; gap: 4px; padding-top: 14px; }
  .home-page .home-nav-login { display: inline-flex; align-items: center; justify-content: space-between; }
  .home-page .navbar-toggler { border-color: #cdd2d0; }
  .home-brand-name { font-size: 26px; }
  .writing-hero { grid-template-columns: 1fr; gap: 36px; padding: 32px 0 45px; }
  .writing-hero-copy { padding-bottom: 0; }
  .writing-hero h1 { font-size: clamp(44px, 8vw, 60px); letter-spacing: -2px; }
  .home-eyebrow { margin-bottom: 21px; }
  .hero-description { font-size: 14px; max-width: 440px; margin-bottom: 25px; }
  .hero-actions { gap: 22px; }
  .writing-hero-visual { width: 100%; max-width: 460px; min-height: 405px; margin-inline: auto; }
  .writing-cover { max-width: 340px; }
  .writing-cover img { width: 44%; }
  .writing-margin-note { right: 0; }
  .home-footer { flex-direction: column; gap: 8px; padding-block: 20px; }
  .home-workspace { padding-top: 25px; }
  .workspace-heading h1 { max-width: 500px; }
  .home-workspace .table { table-layout: fixed; overflow-wrap: anywhere; }
  .home-workspace .table th:last-child { width: 80px; }
  .home-workspace .table thead th { padding: 12px 6px; font-size: 10px; letter-spacing: .03em; }
  .home-workspace .table td { padding: 12px 6px !important; font-size: 12px; }
  .home-workspace .table .btn { padding: 6px 8px; }
  .home-workspace .table .btn i { margin: 0; }
}
@media (max-width: 480px) {
  .hero-actions { gap: 18px; }
  .home-primary-action { padding: 15px 18px; gap: 18px; }
  .writing-hero-visual { min-height: 365px; }
  .writing-cover { width: 79%; padding-top: 22px; }
  .writing-cover p { font-size: 27px; }
  .writing-cover img { width: 47%; margin-block: 17px 12px; }
  .writing-margin-note { font-size: 17px; padding: 16px 20px; }
  .footer-divider { margin-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page a { transition: none; }
}
