* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root {
  --cream: #f6eedf;
  --paper: #fff9eb;
  --ink: #241a18;
  --orange: #e94d13;
  --purple: #572550;
  --gold: #f4a10b;
  --green: #2f7269;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  cursor: default;
}
.page-shell { width: 100%; }
.landing-art {
  position: relative;
  width: min(100%, calc(100dvh - 110px), 1080px);
  margin: 0 auto;
  background: var(--cream);
  overflow: visible;
}
.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.landing-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter: brightness(1);
  transition: filter 850ms ease;
}
.logo-spark {
  position: absolute;
  z-index: 3;
  left: 30.55%;
  top: 3.15%;
  display: grid;
  width: clamp(12px, 1.55vw, 20px);
  aspect-ratio: 1;
  place-items: center;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(.72rem, 1.45vw, 1.15rem);
  line-height: 1;
  text-shadow: 0 1px 1px rgba(128,75,5,.22);
  transform-origin: 50% 50%;
  animation: logo-spark-turn 18s linear infinite, star-breathe 4.8s ease-in-out infinite;
  pointer-events: none;
}
.capture-spark {
  position: absolute;
  z-index: 3;
  left: 13.45%;
  top: 41.45%;
  display: grid;
  width: 1.75%;
  aspect-ratio: 1;
  place-items: center;
  color: var(--gold);
  background: transparent;
  font-family: Georgia, serif;
  font-size: clamp(.78rem, 1.65vw, 1.3rem);
  line-height: 1;
  text-shadow: 0 1px 1px rgba(128,75,5,.22);
  transform-origin: 50% 50%;
  animation: logo-spark-turn 18s linear infinite, star-breathe 4.8s ease-in-out infinite;
  pointer-events: none;
}
.arrival-active .landing-image { filter: brightness(.72) saturate(.82); }
.room-haze {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: rgba(245, 238, 224, .17);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 700ms ease;
}
.lamp-response {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 86% 31%, rgba(255,244,204,.2) 0 2.5%, transparent 8%);
  transition: opacity 520ms ease;
  pointer-events: none;
}
.hero-frame:has(.desk-script:hover, .desk-notepad:hover, .desk-stack:hover, .desk-mug:hover, .desk-resources:hover, .corkboard-main:hover) .lamp-response,
.hero-frame:has(.desk-script:focus-visible, .desk-notepad:focus-visible, .desk-stack:focus-visible, .desk-mug:focus-visible, .desk-resources:focus-visible, .corkboard-main:focus-visible) .lamp-response {
  opacity: 1;
}
.arrival-active .room-haze { opacity: 1; }
.hotspot {
  position: absolute;
  z-index: 4;
  display: block;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 16px;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  -webkit-tap-highlight-color: transparent;
}
.hotspot::before,
.hotspot::after { display: none !important; }
.hotspot:focus-visible {
  outline: 4px solid rgba(240, 124, 33, 0.9);
  outline-offset: 3px;
}
.hotspot:hover,
.hotspot:active { background: transparent !important; }
.nav-about    { left: 40.4%; top: 2.6%; width: 7.5%; height: 3.2%; }
.nav-how      { left: 48.0%; top: 2.6%; width: 10.6%; height: 3.2%; }
.nav-writers  { left: 59.0%; top: 2.6%; width: 9.6%; height: 3.2%; }
.nav-features { left: 68.8%; top: 2.6%; width: 8.5%; height: 3.2%; }
.account-links {
  position: absolute;
  z-index: 8;
  top: 2.55%;
  right: 2.4%;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 12px);
  font-size: clamp(.64rem, 1vw, .86rem);
  font-weight: 700;
}
.account-links a,
.account-links span {
  color: var(--purple);
  text-decoration: none;
}
.account-links a { cursor: pointer; }
.account-links span { cursor: default; }
.sign-in-link { padding: 6px 2px; }
.account-links a.sign-in-link:hover { text-decoration: underline; }
.sign-in-link.is-authenticated {
  padding: 6px 0;
  border-radius: 0;
  color: #15100f;
  background: transparent;
  box-shadow: none;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
  white-space: nowrap;
}
.sign-up-link {
  padding: clamp(6px, .8vw, 9px) clamp(10px, 1.4vw, 16px);
  border-radius: 999px;
  color: #fff !important;
  background: var(--orange);
  box-shadow: 0 3px 10px rgba(104, 45, 25, .2);
}
.sign-up-link:hover { background: #cc4211; }
.account-links form { margin: 0; }
.account-links.is-authenticated {
  right: 2.4%;
  gap: clamp(12px, 1.45vw, 18px);
  font-size: clamp(.64rem, 1vw, .86rem);
}
.account-links.is-authenticated .sign-up-link {
  padding: clamp(6px, .72vw, 8px) clamp(10px, 1.15vw, 14px);
}
.account-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}
@media (max-width: 760px) {
  .account-links,
  .account-links.is-authenticated {
    top: 6.9%;
    right: 2.4%;
    gap: clamp(8px, 1.5vw, 12px);
  }
}
.desk-script    { left: 5.5%; top: 68.0%; width: 24.0%; height: 20.8%; }
.desk-notepad   { left: 29.0%; top: 67.4%; width: 16.0%; height: 21.0%; }
.desk-stack     { left: 47.4%; top: 66.8%; width: 17.8%; height: 22.5%; }
.desk-mug       { left: 65.0%; top: 66.8%; width: 16.0%; height: 17.0%; }
.desk-resources { left: 81.0%; top: 74.2%; width: 17.5%; height: 18.5%; }
.corkboard-main { left: 60.2%; top: 27.3%; width: 36.8%; height: 40.0%; }


.landing-labels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  padding: 2px clamp(4px, 1vw, 10px) 0;
  background: linear-gradient(180deg, rgba(255,250,240,.96), rgba(246,238,223,.99));
  border-top: 1px solid rgba(87,37,80,.1);
}
.landing-labels a {
  min-width: 0;
  padding: 1px 1px 0;
  color: var(--purple);
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 160ms ease, background 160ms ease;
  cursor: pointer;
}
.landing-labels a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.55);
}
.landing-labels strong {
  display: block;
  margin-bottom: clamp(6px, .7vw, 9px);
  color: #315f82;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.66rem, 1vw, .86rem);
  line-height: 1;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: #315f82;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.landing-labels a:hover strong,
.landing-labels a:focus-visible strong {
  color: #193f5d;
  text-decoration-color: #193f5d;
}
.landing-labels small {
  display: block;
  margin-top: 1px;
  color: #6f625d;
  font-size: clamp(.56rem, .72vw, .66rem);
  line-height: 1.02;
}
.landing-encouragement {
  height: clamp(72px, 12vw, 120px);
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--cream);
  overflow: hidden;
}
.landing-encouragement img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.return-card {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 23%;
  width: min(480px, calc(100% - 36px));
  padding: 28px 30px 24px;
  transform: translate(-50%, -15px) rotate(-1deg);
  border: 1px solid rgba(95,68,38,.22);
  border-radius: 10px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 29px, rgba(76,120,151,.13) 29px 30px),
    #fff9df;
  box-shadow: 0 24px 70px rgba(33,22,18,.35);
  animation: card-arrive 520ms cubic-bezier(.2,.8,.2,1) forwards;
}
.return-card[hidden] { display: none; }
.return-card.is-leaving { animation: card-leave 430ms ease forwards; }
.return-card-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #6e5d55;
  font-size: 1.55rem;
  cursor: pointer;
}
.return-logo {
  display: flex;
  align-items: baseline;
  width: fit-content;
  margin: 0 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2.7vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
}
.return-logo span:first-child { color: var(--orange); }
.return-logo span:nth-child(2) { color: var(--purple); }
.return-logo i {
  margin-left: .24em;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: .7em;
  font-style: normal;
}
.return-kicker {
  margin: 0 0 4px;
  color: var(--orange);
  font-size: clamp(.92rem, 2vw, 1.08rem);
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.2;
  text-transform: uppercase;
}
.return-card h1 {
  margin: 0 0 16px;
  color: var(--purple);
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: clamp(1.08rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}
.return-card > a {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: #315f82;
  font-weight: 600;
  text-decoration-color: rgba(49,95,130,.58);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.return-card > a:hover { color: #193f5d; }
.return-card > a:focus-visible {
  border-radius: 2px;
  outline: 3px solid rgba(49,95,130,.28);
  outline-offset: 3px;
}
.return-card-hide {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #6f625d;
  font-size: .78rem;
}

.spotlight-words {
  position: absolute;
  z-index: 3;
  left: 40.15%;
  top: 43.2%;
  width: 16.1%;
  min-height: 10.2%;
  margin: 0;
  padding: .4% .55%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  color: #fff8e7;
  text-align: center;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
}
.spotlight-words blockquote {
  margin: 0;
  color: rgba(255,248,231,.92);
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(.42rem, .92vw, .72rem);
  font-weight: 400;
  line-height: 1.28;
}
.spotlight-words figcaption {
  margin-top: .55em;
  color: #efc477;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(.3rem, .58vw, .48rem);
  font-weight: 600;
  letter-spacing: .03em;
}

.document-text-preview,
.note-preview-text {
  user-select: text;
  -webkit-user-select: text;
  white-space: pre-wrap;
  cursor: text;
}

.resource-project-choices { border: 0; padding: .35rem 0; margin: 0; }
.resource-project-choices legend { font-weight: 700; color: var(--plum, #5e225b); }
.resource-project-choice { display: inline-flex; align-items: center; margin: .25rem .75rem .25rem 0; font-weight: 500; }

.coffee-steam {
  position: absolute;
  z-index: 5;
  left: 69.4%;
  top: 35.8%;
  width: 4.5%;
  height: 7%;
  pointer-events: none;
  opacity: .75;
}
.coffee-steam span {
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 42px;
  border-left: 3px solid rgba(255,255,255,.8);
  border-radius: 50%;
  filter: blur(.4px);
  opacity: 0;
  animation: steam-rise 6s ease-in-out infinite;
}
.coffee-steam span:nth-child(1) { left: 12%; animation-delay: 1s; }
.coffee-steam span:nth-child(2) { left: 42%; height: 48px; animation-delay: 3.2s; }
.coffee-steam span:nth-child(3) { left: 70%; height: 36px; animation-delay: 5s; }
.coffee-steam span:nth-child(4) {
  left: 88%;
  width: 9px;
  height: 31px;
  border-left-width: 2px;
  opacity: 0;
  animation-delay: 6.4s;
}
.arrival-active .coffee-steam { opacity: .15; }

@keyframes card-arrive {
  from { opacity: 0; transform: translate(-50%, -60px) rotate(-4deg); }
  to { opacity: 1; transform: translate(-50%, -15px) rotate(-1deg); }
}
@keyframes card-leave {
  to { opacity: 0; transform: translate(-50%, -70px) rotate(3deg); }
}
@keyframes steam-rise {
  0%, 62%, 100% { opacity: 0; transform: translateY(8px) scale(.8) rotate(-4deg); }
  70% { opacity: .65; }
  88% { opacity: 0; transform: translateY(-34px) scale(1.15) rotate(8deg); }
}
@keyframes logo-spark-turn {
  to { transform: rotate(360deg); }
}
@keyframes star-breathe {
  0%, 100% { opacity: .88; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.16); }
}
@media (max-width: 560px) {
  .landing-art { width: min(100%, calc(100dvh - 215px)); }
  .landing-labels { grid-template-columns: repeat(3, 1fr); }
  .return-card { top: 17%; }
  .return-card h1 { white-space: normal; }
}
@media (max-width: 380px) {
  .landing-labels { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
/* v13 functional baseline: do not dim or haze the approved artwork. */
.arrival-active .landing-image { filter: brightness(1) saturate(1) !important; }
.room-haze { display:none !important; }
#onedrive-test { border:0; border-radius:999px; background:#572550; color:white; font-weight:700; box-shadow:0 5px 16px rgba(0,0,0,.18); cursor:pointer; }
#onedrive-test.connected { background:#2f7269; }
