/* Field Blend Studio. One stylesheet, no JavaScript.
   Light and dark themes follow the visitor's device setting. */

:root {
  color-scheme: light dark;

  --bg: #faf6f0;
  --surface: #fffdf9;
  --ink: #241a1d;
  --muted: #65575a;
  --line: #e4d9ce;
  --accent: #7b1e3a;
  --accent-soft: #f3e3e3;
  --note-bg: #fff4d6;
  --note-ink: #5c4300;
  --note-line: #c99a1b;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 40rem;
  --gutter: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171214;
    --surface: #211a1d;
    --ink: #f3ebe6;
    --muted: #b8a9ab;
    --line: #3a2e32;
    --accent: #eba3b5;
    --accent-soft: #3a2029;
    --note-bg: #332a10;
    --note-ink: #f5dfa0;
    --note-line: #b08a22;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.wrap {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Links and focus */

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  top: 0.5rem;
}

/* Header and footer */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.brand svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0 -0.6rem;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.6rem;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.site-footer ul {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

/* Type */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 1.4rem + 3vw, 3rem);
  letter-spacing: -0.01em;
}

h2 {
  margin: 3rem 0 0.75rem;
  font-size: 1.45rem;
}

h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.1rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

main {
  padding-top: 2rem;
}

.lede {
  font-size: 1.15rem;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.eyebrow a {
  color: inherit;
}

/* Home */

.hero {
  padding: 1.5rem 0 0.5rem;
}

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

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.app-card:hover {
  border-color: var(--accent);
}

.app-card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.25rem;
}

.app-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

/* Makes the whole card clickable while keeping one real link for screen readers. */
.app-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
}

.app-card p {
  margin: 0 0 0.6rem;
  color: var(--muted);
}

.app-card .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin: 0;
}

.app-card .more {
  color: var(--accent);
  font-size: 0.95rem;
}

.store-link {
  position: relative; /* sits above the card's click area */
  z-index: 1;
}

.app-icon {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 22.5%;
  border: 1px solid var(--line);
}

.pill {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* App page */

.app-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.app-head .app-icon {
  width: 96px;
  height: 96px;
}

.app-head h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.8rem, 1.4rem + 2vw, 2.5rem);
}

.app-head p {
  margin: 0;
}

.name-note {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
}

.decisions {
  padding: 0;
  list-style: none;
}

.decisions li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.decisions h3 {
  margin-top: 0;
}

.decisions p {
  margin: 0;
}

.link-list {
  padding: 0;
  list-style: none;
}

.link-list li {
  border-top: 1px solid var(--line);
}

.link-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.link-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
}

/* Support */

.email {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 0.9rem + 1.6vw, 1.6rem);
  overflow-wrap: anywhere;
}

.faq dt {
  margin-top: 1.25rem;
  font-weight: 600;
}

.faq dd {
  margin: 0.25rem 0 0;
}

/* Placeholders: text I still need to supply. Deliberately hard to miss. */

.placeholder {
  display: block;
  padding: 0.7rem 0.9rem;
  background: var(--note-bg);
  color: var(--note-ink);
  border: 2px dashed var(--note-line);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
}

.placeholder strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 26rem) {
  .app-card {
    padding: 1rem;
    gap: 0.85rem;
  }

  .app-icon {
    width: 60px;
    height: 60px;
  }

  .app-head .app-icon {
    width: 76px;
    height: 76px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .app-card {
    transition: border-color 0.15s ease;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
