/* Pinelock site: the app's palette (lib/theme.dart), light and dark. */
:root {
  --pine: #1f3d36;
  --moss: #5c7f67;
  --amber: #e3a23b;
  --amber-ink: #9a6208; /* amber dark enough for text on light backgrounds */
  --bg: #eef2ec;
  --surface: #ffffff;
  --text: #15201c;
  --muted: #4d5c55;
  --line: #d6dfd6;
  --accent: var(--pine);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101a17;
    --surface: #182621;
    --text: #e6ede8;
    --muted: #a3b3aa;
    --line: #2a3b35;
    --accent: #8fc2a2;
    --amber-ink: var(--amber);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.top { padding: 18px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav a { margin-left: 18px; font-weight: 700; text-decoration: none; color: var(--muted); }
nav a:first-child { margin-left: 0; }
nav a[aria-current="page"] { color: var(--accent); }

.hero {
  background: linear-gradient(170deg, #2b5a4c 0%, var(--pine) 55%, #0f1f1b 100%);
  color: #fff;
  border-radius: 28px;
  padding: 44px 32px;
  margin: 8px 0 40px;
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
}
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hero h1 { margin: 0 0 8px; font-size: clamp(30px, 6vw, 44px); line-height: 1.1; font-weight: 900; }
.hero p { margin: 0 0 18px; color: rgba(255,255,255,.85); font-size: 18px; max-width: 30em; }
.hero .text { flex: 1 1 300px; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--amber); color: #15201c; font-weight: 800; text-decoration: none;
}
.note { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 10px; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 40px; }
.card { background: var(--surface); border-radius: 20px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.dot { width: 34px; height: 34px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; margin-bottom: 12px; font-size: 18px; }

article { background: var(--surface); border-radius: 24px; padding: 32px; margin: 8px 0 40px; }
article h1 { margin-top: 0; font-size: clamp(28px, 5vw, 36px); line-height: 1.15; font-weight: 900; }
article h2 { margin-top: 32px; font-size: 21px; }
.updated { color: var(--muted); font-size: 15px; margin-top: -8px; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 800; }
details p { color: var(--muted); margin: 10px 0 0; }
.contact { background: var(--bg); border-radius: 16px; padding: 18px 20px; margin: 20px 0; }
.contact a { font-weight: 800; font-size: 18px; word-break: break-all; }

footer { color: var(--muted); font-size: 14px; padding: 8px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); margin-right: 14px; }

@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding: 32px 22px; border-radius: 22px; }
  article { padding: 24px 20px; }
  nav a { margin-left: 12px; }
}
