/* fasted.club: the app's own palette and type, light (leaf green) and dark (black and white). */
@font-face {
  font-family: 'Rubik';
  src: url('/fonts/Rubik_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  src: url('/fonts/Rubik_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  src: url('/fonts/Rubik_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #edf5ea;
  --bg-deep: #f8fbf6;
  --ink: #13261a;
  --muted: #4e6354;
  --accent: #2e7d32;
  --tile: rgba(255, 255, 255, 0.72);
  --edge: rgba(20, 60, 30, 0.12);
  --panel: rgba(88, 178, 72, 0.12);
  --danger: #b3261e;
  --danger-text: #b3261e;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --bg-deep: #000000;
    --ink: #ffffff;
    --muted: #a1a1a6;
    --accent: #ffffff;
    --tile: rgba(255, 255, 255, 0.06);
    --edge: rgba(255, 255, 255, 0.14);
    --panel: rgba(255, 255, 255, 0.07);
    --danger-text: #ffb4ab;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-deep), var(--bg) 60%);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 17px/1.6 Rubik, system-ui, sans-serif;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .wrap {
    padding: 0 28px;
  }
}

.top {
  padding-block: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.4px;
}
h1 {
  font-size: clamp(32px, 7vw, 46px);
  line-height: 1.1;
  font-weight: 700;
}
h2 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 500;
}
p {
  margin: 0;
}
.lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 34em;
}
.muted {
  color: var(--muted);
}

.hero {
  display: grid;
  gap: 18px;
  padding-block: 28px 40px;
}
.hero img {
  width: 112px;
  height: 112px;
}
.status {
  font-weight: 500;
  color: var(--accent);
}

/* The app's element tiles: what you log, by symbol. */
.elements {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 460px;
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
}
.elements li {
  position: relative;
  aspect-ratio: 1;
  padding-top: 12px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--tile);
}
.elements .z {
  position: absolute;
  top: 6px;
  left: 9px;
  font-size: 11px;
  color: var(--muted);
}
.elements .sym {
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 500;
  line-height: 1.1;
}
.elements sub {
  font-size: 0.55em;
}
.elements .name {
  font-size: 13px;
  color: var(--muted);
}

.features {
  display: grid;
  gap: 0;
  margin: 0 0 40px;
}
.features div {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--edge);
}
.features dt {
  font-weight: 500;
  font-size: 18px;
}
.features dd {
  margin: 0;
  color: var(--muted);
}
@media (min-width: 640px) {
  .features div {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }
}

.panel {
  display: grid;
  gap: 10px;
  padding: 22px;
  margin: 0 0 40px;
  border-radius: 22px;
  background: var(--panel);
}

.page {
  display: grid;
  gap: 18px;
  padding-block: 18px 40px;
}
.page h2 {
  margin-top: 14px;
}
.page ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.updated {
  font-size: 14px;
  color: var(--muted);
}

/* Account deletion: sign in, confirm, done. */
.account {
  gap: 0;
}
.account .steps {
  display: grid;
  gap: 14px;
  overflow-wrap: anywhere;
}
.account .steps[hidden],
.account form[hidden] {
  display: none;
}
.method {
  display: grid;
  gap: 10px;
  padding-block: 16px;
  border-top: 1px solid var(--edge);
}
.method:first-child {
  padding-top: 0;
  border-top: 0;
}
.method h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}
.method label {
  display: grid;
  gap: 6px;
  font-size: 15px;
  color: var(--muted);
}
.method input {
  width: 100%;
  max-width: 26rem;
  padding: 11px 14px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--tile);
  color: var(--ink);
  font: inherit;
}
.button {
  justify-self: start;
  padding: 11px 18px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--tile);
  color: var(--ink);
  font: 500 16px/1.3 Rubik, system-ui, sans-serif;
  cursor: pointer;
}
.button.danger {
  border-color: transparent;
  background: var(--danger);
  color: #ffffff;
}
.button.quiet {
  padding-inline: 0;
  border-color: transparent;
  background: none;
  color: var(--accent);
}
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.method input:focus-visible,
.button:focus-visible,
.check input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check input {
  margin-top: 6px;
}
.error {
  color: var(--danger-text);
  font-weight: 500;
}
.error:not(:empty) {
  margin-top: 12px;
}

footer {
  padding-block: 28px 40px;
  border-top: 1px solid var(--edge);
  color: var(--muted);
  font-size: 15px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}
