/* Linen Notes website. No scripts, fonts or third-party requests. Colors follow the app's teal theme. */

:root {
  color-scheme: light dark;
  --bg: #eef4f2;
  --bg-top: #f7faf9;
  --surface: #ffffff;
  --text: #0d2b27;
  --muted: #4a605b;
  --line: #d5e1de;
  --accent: #0f766e;
  --on-accent: #ffffff;
  --pill: #d9ece8;
  --pill-text: #0b5e57;
  --shadow: 0 1px 2px rgb(13 43 39 / 6%), 0 8px 24px rgb(13 43 39 / 6%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08110f;
    --bg-top: #0d1a17;
    --surface: #111c1a;
    --text: #e6efed;
    --muted: #9fb3ae;
    --line: #22332f;
    --accent: #5fd4c3;
    --on-accent: #04201c;
    --pill: #12302b;
    --pill-text: #a7e3d9;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: linear-gradient(var(--bg-top), var(--bg) 28rem) var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 16px 4rem;
}

a { color: var(--accent); text-underline-offset: 0.15em; }

a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Header: brand, page links, language menu at the top right. */

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

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

nav { display: flex; gap: 1.25rem; margin-left: auto; }

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; }

.lang { position: relative; }

.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.lang summary::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  margin-left: 0.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
}

.lang[open] summary::after { transform: translateY(15%) rotate(225deg); }

.globe { fill: none; stroke: currentColor; stroke-width: 1.6; }

.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(22rem, calc(100vw - 32px));
  max-height: min(70vh, 32rem);
  overflow-y: auto;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 16%);
}

.lang li + li { margin-top: 0; }

.lang ul a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.lang ul a:hover { background: var(--pill); }
.lang ul a[aria-current="true"] { background: var(--pill); color: var(--pill-text); font-weight: 650; }

@media (max-width: 34rem) {
  .lang { margin-left: auto; }
  nav { order: 1; width: 100%; margin-left: 0; }
}

/* Content */

h1 { font-size: 2.1rem; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin: 2rem 0 0.5rem; }
h2 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.01em; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }

.lead { font-size: 1.15rem; color: var(--muted); margin-top: 0; }
.updated { color: var(--muted); font-size: 0.95rem; }

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.summary ul { margin: 0; padding-left: 1.25rem; }

ul { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }

code { font-size: 0.92em; padding: 0.1em 0.3em; border-radius: 4px; background: var(--pill); }

/* Home page */

.hero { text-align: center; padding: 2rem 0 1rem; }

.hero-icon { border-radius: 22px; box-shadow: var(--shadow); }

.hero h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); margin-top: 1.25rem; }

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  list-style: none;
}

.pills li { margin: 0; padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--pill); color: var(--pill-text); font-weight: 600; font-size: 0.95rem; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  text-decoration: none;
}

.button:hover { filter: brightness(1.08); }

.features {
  list-style: none;
  padding: 0.5rem 1.25rem;
  margin: 2rem 0 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.features li { position: relative; margin: 0; padding: 0.75rem 0 0.75rem 2rem; }
.features li + li { border-top: 1px solid var(--line); }

.features li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.05rem;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
