/* Swellwick brand colours (named first: Research reads custom properties as the brand's own words) */
:root {
  --swell-navy: #12324A;
  --sea-glass-teal: #19C2C2;
  --foam-white: #F7FBFB;
  --soft-coral: #FF8A73;
  --patrol-red: #E0302B;
  --patrol-yellow: #FFD21F;
  --deep-teal: #0B7F86;
  --sand: #F3EBDD;
  --ink: #12324A;
  --muted: #4A6476;
  --line: #D6E4EA;
  --radius: 14px;
  --font-display: "Outfit", "Source Sans 3", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--foam-white); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep-teal); text-underline-offset: 2px; }
a:hover { color: var(--swell-navy); }
:focus-visible { outline: 3px solid var(--patrol-yellow); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--swell-navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--swell-navy); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { margin-right: auto; }
.brand img { width: 140px; height: auto; }
.site-header nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
.site-header nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.site-header nav a { display: block; padding: 6px 10px; border-radius: 999px; color: var(--swell-navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-header nav a:hover { background: var(--foam-white); }
.site-header nav a[aria-current="page"] { background: var(--swell-navy); color: #fff; }
@media (min-width: 900px) {
  .site-header nav { order: 0; width: auto; }
  .brand { margin-right: 8px; }
  .site-header nav { margin-right: auto; }
}

/* buttons */
.btn { display: inline-block; background: var(--sea-glass-teal); color: var(--swell-navy); font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--sea-glass-teal); }
.btn:hover { background: var(--swell-navy); border-color: var(--swell-navy); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-small { padding: 7px 14px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* hero */
.hero { background: var(--swell-navy); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.hero h1 { color: #fff; }
.hero p.lede { font-size: 1.2rem; color: #DCEEF2; max-width: 34em; }
.hero .eyebrow { color: var(--sea-glass-teal); }
.hero figure { margin: 0; }
.hero figure img { border-radius: var(--radius); width: 100%; max-height: 240px; object-fit: cover; object-position: 30% 40%; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.3fr 1fr; align-items: center; padding-top: 72px; padding-bottom: 72px; }
  .hero figure img { max-height: 480px; }
}
.eyebrow { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--deep-teal); margin-bottom: .5em; }
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 40px 0 28px; }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 40em; }

/* sections */
section.band { padding: 48px 0; }
section.band.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.band.sand { background: var(--sand); }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--swell-navy); background: var(--foam-white); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.flags { display: inline-block; width: 18px; height: 12px; background: linear-gradient(var(--patrol-red) 50%, var(--patrol-yellow) 50%); border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.price { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--swell-navy); }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
ul.ticks { padding-left: 1.2em; }
ul.ticks li { margin-bottom: .35em; }
.prose { max-width: 42em; }
.note { font-size: .95rem; color: var(--muted); }

/* tools / integrations */
ul.tools { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { ul.tools { grid-template-columns: repeat(3, 1fr); } }
ul.tools li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
ul.tools strong { display: block; color: var(--swell-navy); }
ul.tools span { font-size: .92rem; color: var(--muted); }

/* tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
caption { text-align: left; padding: 12px 14px; font-weight: 700; color: var(--swell-navy); }
th, td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--foam-white); font-family: var(--font-display); }

/* people */
ul.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { ul.people { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { ul.people { grid-template-columns: repeat(3, 1fr); } }
ul.people li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
ul.people .who { font-family: var(--font-display); font-weight: 700; color: var(--swell-navy); display: block; }
ul.people .role { color: var(--deep-teal); font-weight: 600; font-size: .95rem; display: block; margin-bottom: 4px; }

/* posts */
article.post { max-width: 42em; }
.post-meta { color: var(--muted); font-size: .95rem; }
.quote { border-left: 4px solid var(--sea-glass-teal); padding: 4px 0 4px 16px; margin: 0 0 1em; color: var(--muted); }

/* footer */
.site-footer { background: var(--swell-navy); color: #DCEEF2; padding: 40px 0 24px; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-grid > div:first-child { grid-column: auto; } }
.fine { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 24px; padding-top: 16px; font-size: .9rem; }
.fine p { margin: 0 0 4px; }
.fictional { color: var(--patrol-yellow); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* demo-site notices */
.demo-banner { background: var(--patrol-yellow); color: var(--swell-navy); font-size: .95rem; padding: 8px 0; }
.demo-box { background: #FFF6CC; border: 2px solid var(--patrol-yellow); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 1em; }
.demo-box p:last-child { margin-bottom: 0; }
.demo-label { display: inline-block; background: var(--swell-navy); color: #fff; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.demo-form fieldset { border: 1px dashed var(--muted); border-radius: var(--radius); padding: 16px; margin: 0 0 8px; background: #fff; }
.demo-form legend { font-weight: 700; padding: 0 6px; }
.demo-form label { display: block; font-weight: 600; margin: 8px 0 4px; }
.demo-form input, .demo-form textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--foam-white); }
.demo-form button { margin-top: 12px; }
.demo-form fieldset[disabled] { opacity: .75; }
.demo-form fieldset[disabled] .btn { cursor: not-allowed; background: var(--line); border-color: var(--line); color: var(--muted); }
