/* OneHand Sudoku microsite.
   Same palette as the app's Cloud theme (Pantone Cloud Dancer 2026, with
   sage, copper and espresso beside it), same serif face, same calm. */

:root {
  --background: #F0EEE9;
  --surface: #E4E0D8;
  --ink: #23211E;
  --ink-secondary: #6E6A62;
  --line: #D1CCC2;
  --accent: #A9613B;
  --accent-wash: rgba(169, 97, 59, 0.08);
  --shadow: rgba(0, 0, 0, 0.10);
  --wrong: #B03A2E;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #171614;
    --surface: #211F1C;
    --ink: #F2EFE8;
    --ink-secondary: #A8A399;
    --line: #3B3833;
    --accent: #D08A5E;
    --accent-wash: rgba(208, 138, 94, 0.10);
    --shadow: rgba(0, 0, 0, 0.55);
    --wrong: #E87A6B;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 24px 96px;
  background: var(--background);
  color: var(--ink);
  font-family: ui-serif, "New York", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 660px; margin: 0 auto; }

/* Header ------------------------------------------------------------- */

header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 48px 0 32px;
}

header img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--shadow);
}

header .name {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

header .tag {
  color: var(--ink-secondary);
  font-size: 15px;
}

header a { text-decoration: none; color: inherit; }

/* Type --------------------------------------------------------------- */

h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 24px 0 8px;
}

h2 {
  font-size: 22px;
  margin: 44px 0 10px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 18px;
  margin: 28px 0 4px;
}

.updated {
  color: var(--ink-secondary);
  font-size: 15px;
  margin: 0 0 8px;
}

p { margin: 0 0 16px; }

ul { padding-left: 22px; margin: 0 0 16px; }

li { margin-bottom: 8px; }

strong { font-weight: 600; }

a { color: var(--accent); text-underline-offset: 3px; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

/* The one loud line on the page -------------------------------------- */

.lede {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin: 24px 0 32px;
}

/* Cards on the landing page ------------------------------------------ */

.cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 32px 0;
}

.card {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--accent-wash);
  text-decoration: none;
  color: inherit;
}

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

.card .title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 2px;
}

.card .sub {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.4;
}

/* Question blocks on the support page --------------------------------- */

.q {
  font-weight: 600;
  margin: 24px 0 4px;
}

/* Footer -------------------------------------------------------------- */

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-secondary);
  font-size: 15px;
}

footer a { color: var(--ink-secondary); }

footer nav { margin-bottom: 8px; }

footer nav a { margin-right: 16px; }

@media (max-width: 520px) {
  body { font-size: 17px; padding: 0 20px 64px; }
  h1 { font-size: 28px; }
  .lede { font-size: 19px; }
}

/* Contact form ------------------------------------------------------- */

.form-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--accent-wash);
  padding: 24px;
  margin: 24px 0 8px;
}

.form-block h2 { margin-top: 0; }

form label {
  display: block;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}

form input[type="email"],
form textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

form input[type="email"]:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

form textarea { resize: vertical; min-height: 130px; }

form button {
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  padding: 14px 24px;
  width: 100%;
  cursor: pointer;
  /* 44pt is the same tap target the app holds itself to. */
  min-height: 48px;
}

form button:hover { filter: brightness(1.08); }

.hp { position: absolute; left: -9999px; }

.form-note {
  color: var(--ink-secondary);
  font-size: 15px;
  margin: 0;
}

.form-status {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.form-status.good { color: var(--ink); }

.form-status.bad { color: var(--wrong); }

/* Screenshot carousel ------------------------------------------------- */

.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Break the reading column: the strip runs to both screen edges, which is
     what tells a thumb it is meant to be pushed. */
  margin: 32px calc(50% - 50vw) 10px;
  padding: 4px calc(50vw - 50% + 4px) 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  -webkit-overflow-scrolling: touch;
}

.shots:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.shots figure {
  margin: 0;
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: center;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 3px 14px var(--shadow);
  background: var(--surface);
}

.shots figcaption {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink-secondary);
}

.shots::-webkit-scrollbar { height: 8px; }

.shots::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.shots-hint {
  color: var(--ink-secondary);
  font-size: 15px;
  margin: 0 0 8px;
}

@media (max-width: 520px) {
  .shots figure { width: 200px; }
}

/* A carousel that slides itself is a carousel that slides away from someone
   still reading it. */
@media (prefers-reduced-motion: reduce) {
  .shots { scroll-behavior: auto; }
}
