/* oasysadmin · Coastal light, the default theme.
   Every rule is scoped to html.coastal, so it never affects geek mode. */

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-Variable.woff") format("woff");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

/* oasysadmin · Coastal light (default theme) */

html.coastal {
  --navy: #10202B;
  --navy-2: #16303F;
  --navy-line: #2C4656;
  --cream: #F6F3EC;
  --white: #FFFFFF;
  --ink: #10202B;
  --muted: #3E4F5A;
  --line: #E2DCCD;
  --sand: #E9E4D8;
  --palm: #5FD08A;
  --amber: #F2A93B;
  --green: #1F7A4A;
  --green-deep: #1F5F3B;
  --green-soft: #E4EFE7;
  --mist: #A9B7B5;
  --gutter: max(20px, calc((100% - 1160px) / 2));
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html.coastal *,
html.coastal *::before,
html.coastal *::after { box-sizing: border-box; }
html.coastal,
html.coastal body { margin: 0; }

html.coastal body {
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html.coastal a { color: var(--green); text-underline-offset: 3px; }
html.coastal a:hover { color: var(--ink); }
html.coastal p { margin: 0; }
html.coastal h1,
html.coastal h2,
html.coastal h3 { margin: 0; line-height: 1.15; }

html.coastal .only-geek { display: none !important; }

html.coastal .page { min-height: 100vh; display: flex; flex-direction: column; }
html.coastal main { flex: 1; width: 100%; }
html.coastal body.is-page main { max-width: 820px; margin: 0 auto; padding: 56px 20px 80px; }

/* ---------- Header ---------- */

html.coastal .site-header {
  background: var(--navy);
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
}
html.coastal .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
html.coastal .logo-mark { width: 30px; height: 38px; flex: none; }
html.coastal .logo-word { font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: -0.5px; white-space: nowrap; }
html.coastal .logo-word .tilde { display: none; }
html.coastal .oa { color: var(--amber); }
html.coastal .sys { color: var(--palm); }

html.coastal .site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
html.coastal .site-nav a {
  color: var(--sand);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 999px;
  text-transform: capitalize;
}
html.coastal .site-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
html.coastal .site-nav a[aria-current="page"] { color: var(--palm); }
html.coastal .site-nav a.nav-cta { background: var(--palm); color: var(--navy); font-weight: 700; padding: 10px 18px; margin-left: 4px; text-transform: none; }
html.coastal .site-nav a.nav-cta:hover { background: #7ADBA0; color: var(--navy); }

html.coastal .theme-toggle { display: none; }
html.coastal.js .theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--navy-line);
  background: transparent;
  color: var(--sand);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
html.coastal .theme-toggle:hover { border-color: var(--palm); }
html.coastal .theme-toggle:focus-visible,
html.coastal .site-nav a:focus-visible { outline: 3px solid var(--palm); outline-offset: 2px; }
html.coastal .tt-track { width: 44px; height: 26px; border-radius: 999px; background: #23394A; padding: 3px; display: flex; }
html.coastal .tt-knob { width: 20px; height: 20px; border-radius: 50%; background: var(--sand); }
html.coastal .tt-label::before { content: ">_ "; color: var(--palm); }

/* ---------- Shared bits ---------- */

html.coastal .c-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
html.coastal .c-lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 560px; }
html.coastal .c-actions { display: flex; gap: 12px; flex-wrap: wrap; }
html.coastal .c-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid var(--green);
}
html.coastal .c-btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }
html.coastal .c-btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
html.coastal .c-btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
html.coastal .c-btn:focus-visible,
html.coastal .c-card:focus-visible { outline: 3px solid var(--palm); outline-offset: 3px; }

html.coastal .c-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; }
html.coastal .c-head h2 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -1px; font-weight: 800; }
html.coastal .c-head p { color: var(--muted); }
html.coastal .c-head a { font-weight: 700; }

/* ---------- Home: hero ---------- */

html.coastal .c-hero {
  padding: 56px var(--gutter) 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
html.coastal .c-hero-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
html.coastal .c-hero-text h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.06; letter-spacing: -1.5px; font-weight: 800; }

html.coastal .c-hero-art {
  flex: 1 1 320px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: var(--navy);
  padding: 40px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
html.coastal .c-hero-art::before,
html.coastal .c-hero-art::after { content: ""; position: absolute; border-radius: 50%; }
html.coastal .c-hero-art::before { width: 520px; height: 520px; border: 1px solid #23394A; left: -160px; top: -180px; }
html.coastal .c-hero-art::after { width: 360px; height: 360px; background: var(--navy-2); right: -120px; bottom: -150px; }
html.coastal .c-palm { position: relative; z-index: 1; width: 210px; max-width: 70%; height: auto; }
html.coastal .c-tags { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
html.coastal .c-tags li { padding: 10px 16px; border-radius: 14px; color: var(--navy); font-weight: 700; font-size: 14px; }
html.coastal .t-sand { background: var(--cream); }
html.coastal .t-amber { background: var(--amber); }
html.coastal .t-palm { background: var(--palm); }

/* ---------- Home: areas ---------- */

html.coastal .c-areas { background: var(--white); padding: 72px var(--gutter); display: flex; flex-direction: column; gap: 32px; }
html.coastal .c-area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
html.coastal .c-area { padding: 26px; border-radius: 22px; background: var(--cream); display: flex; flex-direction: column; gap: 16px; }
html.coastal .c-area h3 { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; letter-spacing: -0.3px; }
html.coastal .c-num {
  width: 40px; height: 40px; flex: none;
  border-radius: 12px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
html.coastal .n-amber { color: var(--amber); }
html.coastal .n-palm { color: var(--palm); }
html.coastal .n-sand { color: var(--sand); }
html.coastal .c-area ul { margin: 0; padding: 0; list-style: none; }
html.coastal .c-area li { font-size: 16px; font-weight: 600; padding: 10px 0; border-top: 1px solid var(--line); }

/* ---------- Home: latest posts ---------- */

html.coastal .c-latest { padding: 72px var(--gutter); display: flex; flex-direction: column; gap: 32px; }
html.coastal .c-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
html.coastal .c-card {
  text-decoration: none;
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
html.coastal .c-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16, 32, 43, 0.08); }
html.coastal .c-card-meta { font-size: 13px; font-weight: 700; color: var(--green-deep); text-transform: uppercase; letter-spacing: 0.3px; }
html.coastal .c-card-title { font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -0.4px; color: var(--ink); }
html.coastal .c-card-text { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Inner pages ---------- */

html.coastal .page-head { margin-bottom: 36px; display: flex; flex-direction: column; gap: 12px; }
html.coastal .page-head h1 { font-size: clamp(36px, 5vw, 48px); font-weight: 800; letter-spacing: -1.2px; }
html.coastal .lede { color: var(--muted); font-size: 19px; line-height: 1.6; }

html.coastal .post-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
html.coastal .post-list li {
  background: var(--white);
  border-radius: 20px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
html.coastal .post-list time { font-size: 13px; font-weight: 700; color: var(--green-deep); text-transform: uppercase; letter-spacing: 0.3px; }
html.coastal .pl-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
html.coastal .post-list a { font-size: 21px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.3; color: var(--ink); text-decoration: none; }
html.coastal .post-list a:hover { color: var(--green); }
html.coastal .post-list p { color: var(--muted); font-size: 16px; }
html.coastal .pl-updated {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}
html.coastal .more { margin-top: 28px; font-weight: 700; }

/* ---------- Posts ---------- */

html.coastal .post-head { margin-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }
html.coastal .post-meta { font-size: 14px; font-weight: 700; color: var(--green-deep); }
html.coastal .post-head h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; letter-spacing: -1px; line-height: 1.12; }
html.coastal .tags { display: flex; flex-wrap: wrap; gap: 8px; }
html.coastal .tags a {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
}
html.coastal .tags a:hover { background: var(--palm); color: var(--navy); }

html.coastal .prose { font-size: 18px; line-height: 1.75; color: #24343F; }
html.coastal .prose > * + * { margin-top: 1.1em; }
html.coastal .prose h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin-top: 2em; color: var(--ink); }
html.coastal .prose h3 { font-size: 21px; font-weight: 800; margin-top: 1.6em; color: var(--ink); }
html.coastal .prose strong { color: var(--ink); }
html.coastal .prose ul,
html.coastal .prose ol { padding-left: 1.4em; }
html.coastal .prose li + li { margin-top: 0.35em; }
html.coastal .prose img { display: block; max-width: 100%; height: auto; margin: 1.6em auto; border-radius: 16px; box-shadow: 0 10px 30px rgba(16, 32, 43, 0.10); }
html.coastal .prose blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: inset 4px 0 0 var(--amber);
}
html.coastal .prose blockquote p { margin: 0; }
html.coastal .prose code { font-family: var(--mono); font-size: 0.82em; background: #ECE6D8; color: var(--ink); padding: 2px 6px; border-radius: 6px; }
html.coastal .prose pre {
  background: var(--navy);
  border-radius: 16px;
  padding: 18px 20px;
  overflow-x: auto;
  line-height: 1.55;
}
html.coastal .prose pre code { background: none; padding: 0; font-size: 14px; color: var(--sand); }
html.coastal .prose table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; font-size: 15px; }
html.coastal .prose th,
html.coastal .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
html.coastal .prose th { background: var(--white); }

/* ---------- Contact form ---------- */

html.coastal .intro { margin-bottom: 28px; }
html.coastal .contact-form {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
html.coastal .field { display: flex; flex-direction: column; gap: 8px; }
html.coastal .field label { font-size: 15px; font-weight: 700; color: var(--ink); text-transform: capitalize; }
html.coastal .field input,
html.coastal .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #FBF9F4;
  border: 1px solid #CFC7B5;
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
}
html.coastal .field textarea { resize: vertical; min-height: 160px; }
html.coastal .field input:focus,
html.coastal .field textarea:focus { outline: 3px solid var(--palm); outline-offset: 1px; border-color: var(--green); }
html.coastal .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
html.coastal .small { font-size: 14px; color: var(--muted); }
html.coastal .btn {
  align-self: flex-start;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  background: var(--green);
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 12px 26px;
  cursor: pointer;
}
html.coastal .btn:hover { background: var(--green-deep); }
html.coastal .btn:focus-visible { outline: 3px solid var(--palm); outline-offset: 3px; }
html.coastal .btn:disabled { opacity: 0.6; cursor: wait; }
html.coastal .form-status { font-size: 15px; min-height: 1.4em; }
html.coastal .form-status.ok { color: var(--green); font-weight: 700; }
html.coastal .form-status.error { color: #B3261E; font-weight: 700; }

/* ---------- 404 ---------- */

html.coastal .c-404 { max-width: 640px; margin: 0 auto; padding: 40px 0; display: flex; flex-direction: column; gap: 22px; }
html.coastal .c-404 h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; letter-spacing: -1.5px; }

/* ---------- Footer ---------- */

html.coastal .site-footer {
  background: var(--navy);
  color: var(--mist);
  padding: 40px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
html.coastal .f-brand { display: flex; flex-direction: column; gap: 6px; }
html.coastal .f-word { font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
html.coastal .f-tag { font-size: 15px; }
html.coastal .f-meta { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; font-size: 15px; }
html.coastal .f-meta a { color: var(--sand); text-transform: capitalize; }
html.coastal .f-meta a:hover { color: var(--palm); }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  html.coastal .site-header { padding-top: 12px; padding-bottom: 12px; }
  html.coastal .logo-word { font-size: 18px; }
  html.coastal .site-nav { order: 3; width: 100%; }
  html.coastal .site-nav a { padding: 10px 12px; }
  html.coastal .site-nav a.nav-cta { margin-left: auto; }
  html.coastal .c-hero { padding-top: 40px; padding-bottom: 56px; gap: 36px; }
  html.coastal .c-areas,
html.coastal .c-latest { padding-top: 56px; padding-bottom: 56px; }
  html.coastal body.is-page main { padding-top: 40px; }
  html.coastal .post-list li { padding: 20px; }
  html.coastal .prose { font-size: 17px; }
  html.coastal .contact-form { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html.coastal .c-card { transition: none; }
  html.coastal .c-card:hover { transform: none; }
}
