@import url("https://fonts.googleapis.com/css2?family=Poetsen+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Mono:ital,wght@0,300..700;1,300..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap");

:root {
  --background: #ffffff;
  --surface: #ffffff;
  --text: #333333;
  --headline: #333333;
  --secondary: #005c66;
  --accent: #660033;
  --border: rgba(51, 51, 51, 0.45);
  --shadow: rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Google Sans", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

body,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(100%, 31rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(1.5rem, env(safe-area-inset-top)) 1rem max(2rem, env(safe-area-inset-bottom));
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 1rem;
}

.logo {
  width: clamp(6rem, 28vw, 9rem);
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 1rem;
}

.headline {
  margin: 0;
  color: var(--headline);
  font-family: "Poetsen One", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 2.5rem);
  line-height: 1.05;
}

.subhead {
  margin: 0.375rem 0 1.25rem;
  color: var(--secondary);
  font-family: "Red Hat Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.35;
}

.post-section {
  width: 100%;
}

.post-card {
  width: 100%;
  min-height: 12rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 0.5rem 1.5rem var(--shadow);
  font-family: "Google Sans", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.post-card > :first-child {
  margin-top: 0;
}

.post-card > :last-child {
  margin-bottom: 0;
}

.post-card h2,
.post-card h3,
.post-card h4 {
  color: var(--headline);
  line-height: 1.2;
}

.post-card a {
  color: var(--secondary);
  font-weight: 700;
}

.loading-text {
  margin: 0;
  color: var(--secondary);
}

.date-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.date-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  min-width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: #ffffff;
  font-family: "Afacad Flux", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 0.25rem 0.85rem rgba(102, 0, 51, 0.2);
}

.date-button--next {
  margin-left: auto;
}

.date-button:focus-visible,
.install-button:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

.date-button__icon {
  font-size: 1.15rem;
  line-height: 1;
}

.date-button__text {
  white-space: nowrap;
}

.social-line {
  margin: 0.875rem 0 0;
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
}

.install-button {
  display: block;
  margin: 1rem auto 0;
  min-height: 2.75rem;
  border: 1px solid var(--secondary);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  background: transparent;
  color: var(--secondary);
  font-family: "Afacad Flux", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 420px) {
  .date-nav {
    flex-wrap: wrap;
  }

  .date-button,
  .date-button--next {
    margin-left: 0;
  }

  .date-button {
    flex: 1 1 calc(50% - 0.375rem);
  }
}


.ios-install-help {
  margin: 1rem auto 0;
  border: 1px solid rgba(0, 92, 102, 0.35);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  background: #ffffff;
  color: var(--text);
  text-align: center;
  box-shadow: 0 0.5rem 1.5rem var(--shadow);
}

.ios-install-help h2 {
  margin: 0 0 0.35rem;
  color: var(--secondary);
  font-family: "Afacad Flux", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.2;
}

.ios-install-help p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ios-install-help strong {
  color: var(--accent);
}
