/* Geist by Vercel, SIL Open Font License 1.1 (fonts/Geist-LICENSE.txt), served from this site */
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Quaill LLC. Minimal, in the logo's own two colors. */
:root {
  --paper: #f4efe6;
  --ink: #151515;
  --soft: #6b665d;
  --line: #d9d2c5;
  --measure: 34rem;
}

* {
  box-sizing: border-box;
}

/* `hidden` must win over any display set further down (buttons, rows) */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 7rem) 1.5rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- home ---------- */

.mark {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 2.5rem;
}

.mark img {
  width: 100%;
  height: 100%;
}

h1 {
  margin: 0 0 1rem;
  font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.intro {
  margin: 0;
  color: var(--soft);
  max-width: 28rem;
}

.section {
  margin-top: 4rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--soft);
}

.contact {
  margin: 0;
}

.address {
  margin-top: 0.75rem;
  color: var(--soft);
  font-size: 0.95rem;
}

.foot {
  margin-top: auto;
  padding-top: 5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--soft);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.foot .copy {
  margin-right: auto;
}

/* ---------- inner pages ---------- */

/* the same bar on every inner page: Quaill on the left (home), the TuVida
   pages on the right, the one you are on in ink */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  font-weight: 500;
  text-decoration: none;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--soft);
}

.top nav a {
  text-decoration: none;
}

.top nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.top nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

/* the "get the app" buttons on the invite page */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem !important;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 120ms, color 120ms;
}

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

/* a short row of links inside a page, like the policies on the TuVida page */
.links {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.page .links li {
  margin-bottom: 0;
}

.page h1 {
  margin-bottom: 1.5rem;
}

.page h2 {
  margin: 2.5rem 0 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.page p {
  margin: 0 0 1rem;
}

.page ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.page li {
  margin-bottom: 0.4rem;
}

.page li::marker {
  color: var(--soft);
}

.note {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
}

.note ul {
  margin-bottom: 0;
}

/* legal pages: same look, a touch smaller so long text stays easy to read */
.legal {
  font-size: 1rem;
}

.legal h1 {
  margin-bottom: 0.5rem;
}

.updated {
  color: var(--soft);
  font-size: 0.9rem;
  margin-bottom: 2rem !important;
}

.foot a[aria-current="page"] {
  color: var(--ink);
}

/* projects sit inside an <a>, keep long words from pushing the row wide */
.project-text {
  min-width: 0;
}

/* ---------- project buttons ---------- */

.projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.project {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: border-color 120ms, background-color 120ms;
}

.project:hover {
  border-color: var(--ink);
  background: #fff;
}

.project img,
.project-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
}

.project img {
  background: #fff;
}

.project-icon {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.project-text {
  display: grid;
}

.project-name {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.project-line {
  color: var(--soft);
  font-size: 0.98rem;
}

.project-go {
  font-weight: 500;
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .project {
    transition: none;
  }
}
