/* Loaf Actually: the app's own dark palette (app/lib/core/theme/app_colors.dart). */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #1b1410;
  --surface: #27201a;
  --surface2: #322920;
  --line: #3b3128;
  --text: #f2e8d8;
  --muted: #b8a48e;
  --accent: #e3a857;
  --flour: #f3d9a5;
  --ink: #1b1410;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 600 19px/1 var(--serif);
  margin-right: auto;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-weight: 600;
  font-size: 15px;
}

nav a:first-child {
  margin-left: 0;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--accent);
}

main {
  padding: 40px 0 56px;
}

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

h1 {
  font-size: 36px;
  margin: 0 0 12px;
}

h2 {
  font-size: 24px;
  margin: 40px 0 10px;
}

h3 {
  font-size: 19px;
  margin: 24px 0 6px;
}

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--accent);
}

.lede {
  font-size: 19px;
  color: var(--muted);
}

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

/* The app page's opening. */
.hero {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

.hero img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  flex: none;
  box-shadow: 0 8px 24px rgba(8, 4, 0, 0.55);
}

.hero h1 {
  margin-bottom: 6px;
}

.hero p {
  margin: 0;
}

.soon {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}

.card {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.card.pro {
  background: var(--flour);
  color: var(--ink);
}

.card.pro p {
  color: rgba(27, 20, 16, 0.8);
}

.contact {
  background: var(--surface);
  border-radius: 18px;
  padding: 20px;
  margin: 18px 0 8px;
}

.contact p:last-child {
  margin-bottom: 0;
}

.email {
  font: 600 20px/1.3 var(--serif);
  word-break: break-all;
}

details {
  background: var(--surface);
  border-radius: 14px;
  padding: 4px 18px;
  margin-bottom: 10px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  list-style-position: outside;
}

details[open] summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

details > :last-child {
  margin-bottom: 14px;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

footer.site a {
  color: var(--muted);
}

footer.site p {
  margin: 0 0 6px;
}

@media (max-width: 520px) {
  h1 {
    font-size: 30px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero img {
    width: 88px;
    height: 88px;
    border-radius: 20px;
  }

  nav a {
    margin-left: 14px;
  }
}
