/* Live in Florianópolis
   Sea (deep lagoon green-blue) carries the hero; the island sits on it in dune sand.
   Boat-trim yellow is the only accent. Alegreya for reading, Alegreya Sans for interface. */
:root {
  --sea: #0c4f5a;
  --sea-deep: #083a43;
  --ink: #12303a;
  --sand: #f1e4c3;
  --yellow: #f4b81a;
  --shell: #f6faf8;
  --mist: #d7e5e1;
  --muted: #4d6a72;
  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --measure: 68ch;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--shell); color: var(--ink); font-family: var(--serif); font-size: 1.1875rem; line-height: 1.62; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--sea-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--yellow); color: var(--ink); padding: 0.5rem 0.75rem; z-index: 5; }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 2rem; padding: 1.1rem clamp(1.1rem, 4vw, 3rem); font-family: var(--sans); font-size: 1.0625rem; background: var(--shell); border-bottom: 1px solid var(--mist); }
.home .top { background: var(--sea); border-bottom-color: transparent; }
.brand { font-family: var(--serif); font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; }
.nav a, .langs a { color: var(--ink); text-decoration: none; }
.nav a:hover, .langs a:hover { text-decoration: underline; }
.langs { display: flex; gap: 0.9rem; font-size: 0.975rem; }
.langs span { font-weight: 700; }
.home .brand, .home .nav a, .home .langs a, .home .langs span { color: #fff; }
.home .langs span { color: var(--yellow); }

/* hero */
.hero { background: var(--sea); color: #fff; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 1rem 3rem; padding: clamp(1.5rem, 5vw, 4rem) clamp(1.1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); }
.hero h1 { font-size: clamp(2.7rem, 7.2vw, 5.6rem); line-height: 0.98; letter-spacing: -0.025em; max-width: 11ch; }
.hero-text > p { max-width: 34rem; font-size: 1.3rem; line-height: 1.5; margin: 1.5rem 0 0; color: #e3efec; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; padding: 0.85rem 1.3rem; background: var(--yellow); color: var(--ink); border: 2px solid var(--yellow); border-radius: 3px; text-decoration: none; cursor: pointer; }
.btn:hover { background: #ffd04d; border-color: #ffd04d; color: var(--ink); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.island { margin: 0; justify-self: center; width: min(100%, 30rem); }
.island svg { display: block; width: 100%; height: auto; overflow: hidden; }
.island figcaption { font-family: var(--sans); font-size: 0.95rem; color: #b9d3cf; margin-top: 0.4rem; text-align: center; }
.island .land { fill: var(--sand); }
.island .mainland { fill: #17616c; }
.island .lagoon { fill: var(--sea); }
.island .pt line { stroke: #b9d3cf; stroke-width: 1.2; }
.island .pt circle { fill: var(--yellow); stroke: var(--sea-deep); stroke-width: 2.5; r: 5.5; }
.island .pt text { fill: #fff; font-family: var(--sans); font-weight: 700; font-size: 16px; }
.island a.pt:hover circle, .island a.pt:focus-visible circle { r: 8; }
.island a.pt:hover text { text-decoration: underline; }
.island a.pt:focus-visible { outline: none; }
.island a.pt:focus-visible text { fill: var(--yellow); }
@media (prefers-reduced-motion: no-preference) {
  .island .pt circle { transition: r 0.15s ease; }
}

/* page frame */
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 3rem) 4rem; }
.page-head { padding: clamp(2rem, 5vw, 3.75rem) 0 1.5rem; max-width: 52rem; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
.lede { font-size: 1.35rem; line-height: 1.45; color: var(--muted); margin: 1rem 0 0; }
.crumb { font-family: var(--sans); font-weight: 700; margin: 0 0 0.6rem; }
.crumb a { text-decoration: none; }
.byline { font-family: var(--sans); font-size: 1rem; color: var(--muted); margin: 1.1rem 0 0; }

/* section blocks and article rows */
.block { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.block-head { max-width: 46rem; margin-bottom: 1.25rem; }
.block-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.block-head p { color: var(--muted); margin: 0.6rem 0 0; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rows li { border-bottom: 1px solid var(--mist); }
.rows a { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 0.25rem 2.5rem; padding: 1.05rem 0; color: var(--ink); text-decoration: none; }
.rows a:hover { background: #ecf4f1; }
.row-title { font-weight: 800; font-size: 1.3rem; line-height: 1.25; }
.rows a:hover .row-title { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.row-desc { color: var(--muted); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.45; }
.more { font-family: var(--sans); font-weight: 700; margin: 1rem 0 0; }

/* article */
.post { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 18rem); column-gap: 3.5rem; align-items: start; }
.post > * { grid-column: 1; }
.post > .facts { grid-column: 2; grid-row: 2 / span 3; position: sticky; top: 1.5rem; }
.facts { background: var(--sea); color: #fff; padding: 1.2rem 1.3rem 1.3rem; border-radius: 3px; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.4; }
.facts h2 { font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; color: var(--yellow); margin-bottom: 0.7rem; }
.facts dl { margin: 0; display: grid; gap: 0.8rem; }
.facts dt { color: #b9d3cf; font-size: 0.95rem; }
.facts dd { margin: 0; font-weight: 500; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.75rem; margin: 2.4rem 0 0.7rem; }
.prose h3 { font-size: 1.3rem; margin: 1.8rem 0 0.4rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--sea); font-weight: 800; }
.note { border-left: 5px solid var(--yellow); background: #fff; padding: 0.9rem 1.1rem; margin: 1.5rem 0; font-family: var(--sans); font-size: 1.0938rem; line-height: 1.5; }
.note p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.4rem 0; }
table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 1.0313rem; line-height: 1.4; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.9rem 0.6rem 0; border-bottom: 1px solid var(--mist); }
th { border-bottom: 2px solid var(--ink); font-weight: 700; }
.disclaimer { font-family: var(--sans); font-size: 0.975rem; line-height: 1.45; color: var(--muted); border-top: 1px solid var(--mist); padding-top: 1rem; margin-top: 2rem; }
.portrait { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; margin-bottom: 1.5rem; }

/* call to action */
.cta { margin-top: clamp(2.5rem, 6vw, 4.5rem); background: var(--sand); padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: 3px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2.5rem; }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.cta p { margin: 0.5rem 0 0; max-width: 40rem; }
.cta .btn { background: var(--sea); border-color: var(--sea); color: #fff; }
.cta .btn:hover { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; }
.post > .cta { margin-top: 2rem; }

/* form */
.lead { display: grid; gap: 1.1rem; margin-top: 1.5rem; font-family: var(--sans); }
.lead label { display: grid; gap: 0.35rem; font-weight: 700; font-size: 1.0625rem; }
.lead input, .lead select, .lead textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 0.7rem 0.8rem; border: 1.5px solid #8fa9ad; border-radius: 3px; background: #fff; width: 100%; }
.lead .btn { justify-self: start; background: var(--sea); border-color: var(--sea); color: #fff; }
.lead .btn[disabled] { opacity: 0.6; cursor: default; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 700; }
.note-inline { font-family: var(--sans); color: var(--muted); }

/* footer */
.foot { background: var(--ink); color: #c9dad8; font-family: var(--sans); font-size: 1.0313rem; line-height: 1.5; }
.foot-in { max-width: 72rem; margin: 0 auto; padding: 2.5rem clamp(1.1rem, 4vw, 3rem); }
.foot p { margin: 0 0 0.8rem; max-width: 46rem; }
.foot-brand { font-family: var(--serif); font-weight: 800; font-size: 1.3rem; color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; }
.foot a { color: #fff; }
.foot-small { font-size: 0.95rem; color: #9db5b4; }

@media (max-width: 860px) {
  body { font-size: 1.125rem; }
  .hero { grid-template-columns: 1fr; }
  .island { width: min(100%, 24rem); }
  .rows a { grid-template-columns: 1fr; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post > .facts { grid-column: 1; grid-row: auto; position: static; margin-bottom: 1.5rem; }
  .brand { width: 100%; }
}
