@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Special+Elite&display=swap');

:root {
  --paper: #eeeade;
  --ink: #20201d;
  --muted: #77756b;
  --line: #aaa79b;
  --accent: #d7e600;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #d9d7ce;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
}

/* The website is intentionally designed as a phone-sized reading object. */
.phone {
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.018) 0,
      rgba(0, 0, 0, 0.018) 1px,
      transparent 1px,
      transparent 4px
    ),
    var(--paper);
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
  box-shadow: 0 0 35px rgba(0,0,0,.08);
}

.topbar,
.quote-meta,
.controls,
.footer {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.topbar {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.quote-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
  min-height: 300px;
}

.quote-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  margin-bottom: 28px;
}

.quote-body {
  width: 100%;
  margin: auto 0;
}

.quote-mark {
  margin: 0 0 3px;
  font-family: Georgia, serif;
  font-size: 70px;
  line-height: .55;
  font-weight: normal;
}

blockquote {
  margin: 0;
  font-family: "Special Elite", "Courier New", monospace;
  font-size: clamp(25px, 7vw, 34px);
  line-height: 1.35;
  letter-spacing: -.025em;
}

.author {
  margin: 30px 0 0;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cursor-line {
  margin-top: 42px;
  height: 13px;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 13px;
  background: var(--ink);
  animation: blink 1s steps(2, start) infinite;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.controls button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.controls button:hover {
  background: var(--ink);
  color: var(--paper);
}

.dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 5px;
  height: 5px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.dot.active {
  background: var(--ink);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  padding-top: 18px;
}

#status {
  color: var(--ink);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (min-width: 600px) {
  body {
    padding: 35px 0;
  }

  .phone {
    min-height: 760px;
    border: 1px solid #c1beb2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
  }
}
 