/* iamdiary.com — the app's own light colours (ios/IamDiary/Theme/Palette.swift) and fonts. Light only (Khun Poom, 7 Oct). */
@font-face { font-family: "Anuphan"; src: url("/fonts/Anuphan-Variable.ttf") format("truetype"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Saira Condensed"; src: url("/fonts/SairaCondensed-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
:root {
  --bg: #f0efe8; --surface: #ffffff; --ink: #17181d; --muted: #5f636d; --line: #e1dfd6; --accent-text: #4d6a00; --accent-soft: #edf7cf;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 "Anuphan", system-ui, sans-serif; }
a { color: var(--accent-text); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto; padding: 18px 20px; }
.mark { font: 800 26px/1 "Saira Condensed", "Anuphan", sans-serif; color: var(--ink); text-decoration: none; }
.mark b, .big b { color: var(--accent-text); font-weight: 800; }
nav { display: flex; gap: 18px; font-weight: 600; }
nav a { text-decoration: none; color: var(--muted); }
nav a[aria-current="page"] { color: var(--ink); }
main { max-width: 760px; margin: 0 auto; padding: 8px 20px 48px; }
h1 { font-size: 30px; line-height: 1.3; margin: 18px 0 6px; text-wrap: balance; }
h2 { font-size: 20px; margin: 30px 0 6px; }
h3 { font-size: 17px; margin: 22px 0 4px; }
p, li { overflow-wrap: anywhere; }
.langs { font-weight: 600; }
.table { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--accent-soft); }
code { font-size: .92em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
footer { max-width: 760px; margin: 0 auto; padding: 24px 20px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.home { text-align: center; padding: 48px 0 24px; }
.home img { border-radius: 22px; border: 1px solid var(--line); }
.big { font: 800 64px/1 "Saira Condensed", "Anuphan", sans-serif; margin: 18px 0 14px; }
.home p { font-size: 18px; margin: 6px 0; }
.home .soon { color: var(--muted); font-size: 15px; margin: 18px 0 24px; }

/* Landing page (D-078) */
.hero { text-align: center; padding: 40px 0 8px; }
.app-icon { border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 10px 30px -14px rgba(23, 24, 29, .35); }
.hero .big { margin: 16px 0 6px; }
.hero h1 { font-size: clamp(28px, 6vw, 40px); margin: 6px auto 10px; max-width: 18em; }
.lead { color: var(--muted); font-size: 18px; max-width: 34em; margin: 0 auto 22px; }
.store-btn { display: inline-block; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 17px;
  padding: 13px 26px; border-radius: 14px; }
.store-btn.soon { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.trial { color: var(--accent-text); font-weight: 600; margin-top: 14px; }
/* The strip scrolls sideways. Auto margins centre it when every shot fits; justify-content: center would push the
   first shots out of reach once there are more shots than room (1.1 has six). */
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 28px 4px 18px; margin: 0 -20px; padding-inline: 20px; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; }
.shots img { width: 220px; height: auto; flex: 0 0 auto; border-radius: 22px; scroll-snap-align: start; }
.shots img:first-child { margin-left: auto; }
.shots img:last-child { margin-right: auto; }
@media (min-width: 900px) { .shots img { width: 260px; } }
.features h2, .band h2, .two h2 { font-size: 24px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.grid div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; min-width: 0; }
.grid h3 { margin: 0 0 4px; font-size: 18px; }
.grid p { margin: 0; color: var(--muted); }
.band { background: var(--accent-soft); border-radius: 22px; padding: 6px 22px 12px; margin: 30px 0; }
.two { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.two > div { min-width: 0; }
.two ul { padding-left: 20px; }
.other { text-align: center; margin-top: 30px; font-weight: 600; }

/* ไทย | EN switch in the top bar */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 2px; background: var(--surface); }
.lang-switch a { color: var(--muted); padding: 2px 10px; border-radius: 99px; font-size: 14px; }
.lang-switch a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-text); }
nav { align-items: center; }
@media (max-width: 480px) {
  .bar { flex-wrap: wrap; row-gap: 8px; }
  nav { gap: 12px; font-size: 15px; }
}
