/* Tiny Tides: Island Puzzle, privacy and support site.
   No tracking, no cookies, no third-party assets. */
:root {
  --sand: #f3eee4;
  --foam: #e7f2f0;
  --paper: #fffdf8;
  --ink: #163238;
  --muted: #4a6369;
  --line: #d3e2de;
  --sea: #1c6b73;
  --sea-deep: #123840;
  --tide: #2f8f8b;
  --shell: #e8c48a;
  --focus: #1c6b73;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 50% -80px, #d8efe9 0%, transparent 70%),
    linear-gradient(180deg, var(--foam) 0%, var(--sand) 42%, #efe6d4 100%);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--sea-deep);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 0.4rem;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(42rem, calc(100% - 2rem));
  margin: 0 auto;
}

header {
  padding: 1.25rem 0 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.mark {
  flex: none;
  width: 3rem;
  height: 3rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-text strong {
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--sea-deep);
}

.brand-text span {
  font-size: 0.8rem;
  color: var(--muted);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0.9rem 0 0;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

nav a {
  color: var(--sea);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

nav a:hover,
nav a:focus-visible { text-decoration: underline; }

nav a[aria-current="page"] {
  color: var(--sea-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

main {
  flex: 1;
  padding: 1.6rem 0 2.5rem;
}

h1, h2, h3 {
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  color: var(--sea-deep);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.3rem;
  margin: 1.8rem 0 0.55rem;
}

h3 {
  font-size: 1.08rem;
  margin: 1.15rem 0 0.35rem;
}

p, li { max-width: 40rem; }

p { margin: 0 0 0.9rem; }

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

li { margin: 0 0 0.4rem; }

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

a:hover { color: var(--sea-deep); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 10px 30px -22px rgba(18, 56, 64, 0.45);
}

.links {
  display: grid;
  gap: 0.75rem;
  margin: 1.3rem 0 0;
}

@media (min-width: 560px) {
  .links { grid-template-columns: 1fr 1fr; }
}

.links a {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.1rem 1.05rem;
  box-shadow: 0 10px 30px -22px rgba(18, 56, 64, 0.45);
}

.links a:hover {
  border-color: #b7d4cf;
  background: #fbfffe;
}

.links a strong {
  display: block;
  color: var(--sea-deep);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.links a span {
  color: var(--muted);
  font-size: 0.95rem;
}

.meta {
  margin-top: 1.2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.7rem 1rem;
  margin: 0 0 0.65rem;
}

details[open] { padding-bottom: 0.85rem; }

summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--sea-deep);
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.55rem;
  border-right: 2px solid var(--tide);
  border-bottom: 2px solid var(--tide);
  transform: rotate(-45deg) translateY(-1px);
}

details[open] summary::before {
  transform: rotate(45deg) translateY(-2px);
}

details p:last-child { margin-bottom: 0; }

.note {
  font-size: 0.95rem;
  color: var(--muted);
}

footer {
  padding: 1.2rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

footer p { margin: 0 0 0.35rem; }

.waves {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: auto;
}
