/* cozyislandgames.com: the game's palette (sand, lake blue, meadow green, the warm brown outline colour). */
:root {
  --sand: #f6efe0;
  --card: #fffaf0;
  --ink: #4a3526;
  --ink-soft: #7e5a3c;
  --lake: #9cc6d2;
  --lake-deep: #5f93a8;
  --meadow: #8fae7a;
  --coral: #e8907a;
  --coral-deep: #c96f59;
  --line: #e6dac2;
  --radius: 18px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--sand);
}
@media (prefers-color-scheme: dark) {
  :root {
    --sand: #1f1a15;
    --card: #2a231c;
    --ink: #f3e9d8;
    --ink-soft: #d2b99a;
    --line: #3d3328;
    --lake-deep: #9cc6d2;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--sand); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lake-deep); text-underline-offset: 2px; }
a:hover { color: var(--coral-deep); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; }

.site-header { background: var(--lake); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: #3b2a1e; text-decoration: none; }
.brand img { border-radius: 10px; }
.site-header nav { display: flex; gap: 18px; }
.site-header nav a { color: #3b2a1e; font-weight: 600; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

main { padding: 32px 16px 56px; }
h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: 24px; margin: 36px 0 8px; }
h3 { font-size: 19px; margin: 24px 0 6px; }

/* Home */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.hero p.lead { font-size: 20px; color: var(--ink-soft); margin: 0 0 20px; }
.hero img { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(74, 53, 38, 0.18); }
.badge { display: inline-block; background: var(--coral); color: #fff; font-weight: 700; padding: 12px 20px; border-radius: 999px; text-decoration: none; }
.badge.soon { background: var(--meadow); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.feature div { padding: 14px 18px 18px; }
.feature h3 { margin: 0 0 4px; }
.feature p { margin: 0; color: var(--ink-soft); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }

/* Documents */
.prose { max-width: 760px; }
.prose.legal { font-size: 16px; }
.prose p, .prose li { color: var(--ink); }
.table { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; background: var(--card); border-radius: 12px; overflow: hidden; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--lake); color: #3b2a1e; }
code { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; font-size: 0.92em; }
blockquote { margin: 12px 0; padding: 4px 16px; border-left: 4px solid var(--meadow); background: var(--card); border-radius: 8px; }

/* Contact form */
form { display: grid; gap: 16px; max-width: 620px; }
label { font-weight: 600; display: grid; gap: 6px; }
label .hint { font-weight: 400; color: var(--ink-soft); font-size: 15px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--lake); border-color: var(--lake-deep); }
textarea { min-height: 160px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 5px; }
button { font: inherit; font-weight: 700; background: var(--coral); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; cursor: pointer; justify-self: start; }
button:hover { background: var(--coral-deep); }
button[disabled] { opacity: 0.6; cursor: wait; }
.trap { position: absolute; left: -9999px; }
.status { padding: 12px 16px; border-radius: 12px; }
.status.ok { background: #e3efd8; color: #2f4a22; }
.status.error { background: #f6ddd6; color: #6b2a1c; }
.status:empty { display: none; }

.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: 24px 0; font-size: 15px; color: var(--ink-soft); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; }
.site-footer p { margin: 4px 0; }
.small { font-size: 13px; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  main { padding-top: 24px; }
}
.flush { margin-top: 0; }
