/* hiso.cafe — three colors, one serif, lots of room. */

:root {
  --ink: #1A1A1A;
  --cream: #F5F1E8;
  --coral: #D45D5D;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 640px;
  padding: clamp(4rem, 12vh, 9rem) 1.75rem 5rem;
}

section + section {
  margin-top: clamp(5rem, 14vh, 9rem);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- hero ---------- */

.hero { text-align: center; }

.mark {
  display: inline-block;
  width: 120px;
  height: 60px;
  color: var(--ink);
  margin-bottom: 2.25rem;
}

.mark svg { width: 100%; height: 100%; overflow: visible; }

.lip {
  transform-origin: center;
  animation: breath 4.2s ease-in-out infinite;
}

.dot {
  fill: var(--coral);
  transform-origin: 44px 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes breath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

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

h1 {
  font-size: clamp(3rem, 8vw, 4.25rem);
  font-weight: 400;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0.5rem 0 2.75rem;
  font-size: 1.0625rem;
  opacity: 0.55;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.65;
  max-width: 32rem;
  margin: 0 auto 3rem;
  text-align: left;
}

.cta {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 0.75rem 2.25rem;
  border-radius: 999px;
  transition: background 220ms ease, color 220ms ease;
}

.cta:hover, .cta:focus-visible {
  background: var(--ink);
  color: var(--cream);
  outline: none;
}

/* ---------- day-in-the-life ---------- */

.day { text-align: center; }
.day img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ---------- get it ---------- */

.get h2 {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 1.75rem;
  opacity: 0.5;
  letter-spacing: 0.04em;
}

.downloads {
  list-style: none;
  padding: 0;
  margin: 0 0 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.downloads li {
  border-top: 1px solid rgba(26, 26, 26, 0.12);
}

.downloads li:last-child {
  border-bottom: 1px solid rgba(26, 26, 26, 0.12);
}

.downloads a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.125rem;
  transition: padding 220ms ease;
}

.downloads a:hover, .downloads a:focus-visible {
  padding-left: 0.75rem;
  outline: none;
}

.platform { font-size: 1.1875rem; }

.detail {
  font-size: 0.9375rem;
  opacity: 0.45;
  font-style: italic;
}

.note {
  font-size: 0.9375rem;
  line-height: 1.55;
  opacity: 0.55;
  margin: 0 0 4rem;
}

.note em { font-style: italic; }

.links {
  font-size: 0.9375rem;
  opacity: 0.5;
  margin: 0;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 200ms ease;
}

.links a:hover, .links a:focus-visible {
  border-bottom-color: var(--ink);
  outline: none;
}

/* ---------- responsive ---------- */

@media (max-width: 480px) {
  main { padding: 3.5rem 1.25rem 4rem; }
  .lede { font-size: 1.0625rem; }
  .downloads a { flex-direction: column; align-items: flex-start; gap: 0.25rem; padding: 1rem 0.25rem; }
  .detail { font-size: 0.875rem; }
}

@media (prefers-color-scheme: dark) {
  /* Brand book §7: marketing surfaces stay in the light palette.
     Override the system default with the cream/ink scheme. */
  body { background: var(--cream); color: var(--ink); }
}
