/* Island Services by Charlie — one page.
   World: Charlie's Oct 18 canvas. Poppins; gold, cream, charcoal, white; square corners; hairlines. */

:root {
  --gold: #8E6B3B;        /* fills, marks, large text (4.9:1 on white) */
  --gold-ink: #6E5230;    /* small gold text (6.6:1 on cream) */
  --gold-deep: #5C4326;
  --cream: #F7F4EF;
  --sand: #EDE6DA;
  --white: #FFFFFF;
  --ink: #3A3A3A;
  --body: #4A4A4A;
  --muted: #6B6255;
  --line: #E6E0D6;
  --line-strong: #CFC6B6;
  --shade: rgba(32, 26, 18, 0.55);
  --max: 1180px;
  --gutter: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (min-width: 900px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  accent-color: var(--gold);
  caret-color: var(--gold);
}

::selection { background: #E9D9BE; color: var(--gold-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: #C9B48F; border: 3px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--gold-deep); }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 300; line-height: 1.15; text-wrap: balance; }
h2 { font-size: clamp(28px, 2.2vw + 18px, 40px); letter-spacing: -0.01em; }
h3 { font-size: 22px; font-weight: 400; }
p { margin: 0; }
p + p { margin-top: 0.9em; }
.measure { max-width: 62ch; }
.quiet { color: var(--muted); font-size: 15px; }
.strong { font-weight: 500; color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section.cream { background: var(--cream); }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.section-head p { max-width: 62ch; }
@media (min-width: 900px) {
  .section-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 48px; }
  .section-head p { max-width: 46ch; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px;
  font: inherit; font-size: 16px; font-weight: 500; line-height: 1.2;
  text-decoration: none; border: 1px solid var(--gold); color: var(--gold-deep); background: transparent;
  cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s var(--ease-out);
}
.btn:hover { background: var(--sand); color: var(--gold-deep); }
.btn:active { transform: translateY(1px); }
.btn.gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn.gold:hover { background: #7D5D33; border-color: #7D5D33; color: var(--white); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 42px; height: 42px; flex: 0 0 auto; }
.brand b { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; line-height: 1.05; color: var(--ink); white-space: nowrap; }
.brand small { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.28em; color: var(--gold-ink); margin-top: 3px; white-space: nowrap; }
.top nav { display: none; }
.top .btn { min-height: 44px; padding: 10px 14px; font-size: 15px; white-space: nowrap; }
@media (max-width: 359px) { .top .btn { padding: 10px 10px; font-size: 14px; } .brand small { display: none; } }
@media (min-width: 900px) {
  .brand svg { width: 48px; height: 48px; }
  .brand b { font-size: 17px; }
  .brand small { font-size: 11px; }
  .top nav { display: flex; gap: 26px; }
  .top nav a { font-size: 15px; color: var(--body); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
  .top nav a:hover { color: var(--gold-deep); border-bottom-color: var(--gold); }
  .top .btn { min-height: 46px; padding: 10px 22px; }
}

/* Hero */
.hero { background: var(--cream); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 0; padding: 0; }
.hero-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #DDE3E8; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 80%; }
.hero-copy { padding: 28px var(--gutter) 36px; display: flex; flex-direction: column; gap: 16px; }
.hero h1 { font-size: clamp(30px, 3.2vw + 12px, 52px); letter-spacing: -0.015em; }
.hero .lede { font-size: 17px; max-width: 48ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero .reach { font-size: 15px; color: var(--muted); }
.hero .reach a { white-space: nowrap; }
@media (min-width: 900px) {
  .hero { border-bottom: 0; }
  .hero .wrap { grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); align-items: stretch; min-height: 560px; }
  .hero-photo { order: 2; aspect-ratio: auto; height: 100%; min-height: 560px; }
  .hero-copy { order: 1; padding: 72px 48px 72px var(--gutter); justify-content: center; gap: 20px; }
  .hero .lede { font-size: 18px; }
}
@media (min-width: 1240px) {
  .hero .wrap { max-width: none; padding: 0; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); }
  .hero-copy { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-right: 56px; }
  .hero-photo { min-height: 620px; }
}

/* Breaks strip */
.breaks { border-bottom: 1px solid var(--line); background: var(--white); }
.breaks .wrap { display: grid; gap: 0; padding-top: 28px; padding-bottom: 28px; }
.breaks-lead { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.breaks-lead strong { font-weight: 500; color: var(--ink); font-size: 16px; }
.breaks ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.breaks li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-content: start; }
.breaks li:last-child { border-bottom: 0; }
.breaks .name { color: var(--ink); font-weight: 500; font-size: 16px; }
.breaks .dates { color: var(--body); font-size: 16px; text-align: right; white-space: nowrap; }
.breaks .note { font-size: 14px; color: var(--muted); }
.breaks .now .name::after { content: 'Next'; margin-left: 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); border: 1px solid var(--gold); padding: 2px 7px; vertical-align: 2px; }
@media (min-width: 900px) {
  .breaks .wrap { grid-template-columns: 220px 1fr; gap: 48px; align-items: start; padding-top: 36px; padding-bottom: 36px; }
  .breaks-lead { border-bottom: 0; padding: 6px 0 0; margin: 0; }
  .breaks ol { grid-template-columns: repeat(5, 1fr); }
  .breaks li { grid-template-columns: 1fr; gap: 4px; padding: 6px 20px 6px 0; border-bottom: 0; border-left: 1px solid var(--line); padding-left: 18px; }
  .breaks .dates { text-align: left; white-space: normal; }
  .breaks .now .name::after { display: block; width: max-content; margin: 6px 0 0; }
}

/* Services: ruled rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 1fr 96px; gap: 6px 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.rows li.noimg { grid-template-columns: 1fr; }
.rows h3 { grid-column: 1; }
.rows p { grid-column: 1; }
.rows .thumb { grid-column: 2; grid-row: 1 / span 2; width: 96px; aspect-ratio: 1; overflow: hidden; background: var(--sand); }
.rows .thumb img { width: 100%; height: 100%; object-fit: cover; }
.rows .thumb img.crop-top { object-position: center 12%; }
@media (min-width: 720px) {
  .rows li { grid-template-columns: 260px 1fr 160px; gap: 8px 32px; padding: 26px 0; align-items: start; }
  .rows li.noimg { grid-template-columns: 260px 1fr; }
  .rows h3 { grid-column: 1; grid-row: 1; font-size: 24px; }
  .rows p { grid-column: 2; grid-row: 1; max-width: 58ch; padding-top: 4px; }
  .rows .thumb { grid-column: 3; grid-row: 1; width: 160px; aspect-ratio: 4 / 3; justify-self: end; }
}
.services-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }

/* The work */
.pairs { display: grid; gap: 40px; }
.pair { margin: 0; display: grid; gap: 12px; align-content: start; }
.pair .shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair .shot { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.pair .shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.pair .shot span { position: absolute; z-index: 2; left: 10px; top: 10px; padding: 4px 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; background: var(--ink); color: var(--white); }
.pair .shot.after span { background: var(--gold); }
.pair figcaption { display: flex; flex-direction: column; gap: 2px; }
.pair figcaption strong { font-weight: 500; color: var(--ink); font-size: 17px; }
.pair figcaption span { font-size: 15px; color: var(--muted); }
@media (min-width: 720px) {
  .pairs { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .pair.wide { grid-column: 1 / -1; }
  .pair.wide .shot { aspect-ratio: 4 / 3; }
}
/* The one authored motion: the "after" photo is washed in, left to right, once it scrolls into view.
   Only when site.js is running (html.js); without it, and under reduced motion, the photo is simply there. */
@media (prefers-reduced-motion: no-preference) {
  html.js .pair .shot.after img { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease-out); }
  html.js .pair.in .shot.after img { clip-path: inset(0 0 0 0); }
  html.js .pair .shot.after::before { content: ''; position: absolute; inset: 0; background: var(--sand); z-index: 0; }
  html.js .pair .shot.after img { position: relative; z-index: 1; }
}

.gallery-head { margin: 72px 0 24px; display: flex; flex-direction: column; gap: 6px; }
.gallery-head p { max-width: 60ch; }
.grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 8px; }
.grid figure { margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--sand); }
.grid figure.tall { grid-row: span 2; aspect-ratio: auto; }
.grid img { width: 100%; height: 100%; object-fit: cover; object-position: center 75%; }
.grid.two figure { aspect-ratio: 4 / 3; }
.grid.two img { object-position: center 70%; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } .grid.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } .grid.two { grid-template-columns: 1fr 1fr; } }

/* How a job works */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-content: start; }
.steps li::before { content: counter(step); grid-row: 1 / span 2; font-size: 30px; font-weight: 300; line-height: 1; color: var(--gold); padding-top: 2px; }
.steps strong { font-weight: 500; color: var(--ink); font-size: 18px; }
.steps p { font-size: 16px; max-width: 48ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); border-top: 0; }
  .steps li { grid-template-columns: 1fr; padding: 0 28px 0 0; border-bottom: 0; border-top: 1px solid var(--line-strong); padding-top: 18px; gap: 8px; }
  .steps li::before { grid-row: auto; }
  .steps li + li { margin-left: 0; }
}
.terms { margin-top: 28px; }

/* Meet Charlie */
.meet { display: grid; gap: 28px; }
.meet .photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.meet .photo img { width: 100%; height: 100%; object-fit: cover; }
.meet .text { display: flex; flex-direction: column; gap: 16px; }
.facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 16px; }
.facts svg { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
@media (min-width: 900px) {
  .meet { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
  .meet .photo { aspect-ratio: 3 / 4; }
}

/* FAQ */
.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 18px; color: var(--ink); min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 12px; height: 12px; flex: 0 0 auto; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); transition: transform .25s var(--ease-out); margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--gold-deep); }
.faq .answer { padding: 0 0 20px; max-width: 60ch; }

/* Ask about a job */
.ask { background: var(--cream); border-top: 1px solid var(--line); }
.ask .wrap { display: grid; gap: 36px; }
.ask .intro { display: flex; flex-direction: column; gap: 14px; }
.ask .direct { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; font-size: 16px; }
.ask .direct a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.ask .direct svg { width: 20px; height: 20px; color: var(--gold); flex: 0 0 auto; }
.form { display: grid; gap: 16px; background: var(--white); border: 1px solid var(--line); padding: 22px var(--gutter) 26px; }
.form .two { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line-strong); padding: 12px 14px; min-height: 48px; border-radius: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #75695C; opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px #EFE3CF; }
.form .btn { width: 100%; }
.form .fine { font-size: 14px; color: var(--muted); }
.form .err { display: none; color: #8F2A2A; font-size: 15px; }
.form.invalid .err { display: block; }
@media (min-width: 720px) { .form .two { grid-template-columns: 1fr 1fr; } .form { padding: 28px; } }
@media (min-width: 900px) { .ask .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; } }

/* Close */
.close { position: relative; min-height: 300px; display: grid; place-items: center; overflow: hidden; background: #3A2A20; color: var(--white); text-align: center; }
.close img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.close::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 10, 0.15), rgba(20, 14, 10, 0.55)); }
.close .wrap { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 56px; display: grid; gap: 10px; justify-items: center; }
.close h2 { color: var(--white); font-size: clamp(30px, 3vw + 14px, 46px); text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 28px rgba(0,0,0,.35); }
.close p { font-size: 16px; color: #F3E9D6; text-shadow: 0 1px 2px rgba(0,0,0,.45); max-width: 48ch; }

footer { background: var(--gold); color: var(--white); font-size: 15px; }
footer a { color: var(--white); display: inline-block; padding: 10px 0; margin: -10px 0; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
footer a:hover { color: var(--white); text-decoration-thickness: 2px; text-underline-offset: 0.26em; }
footer .wrap { display: grid; gap: 26px; padding-top: 40px; padding-bottom: 32px; }
footer .foot-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); }
footer .foot-brand svg { width: 40px; height: 40px; }
footer .foot-brand b { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; line-height: 1.05; }
footer .foot-brand small { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.28em; margin-top: 3px; color: var(--white); }
footer .cols { display: grid; gap: 20px; }
footer .col { display: grid; gap: 4px; align-content: start; }
footer .col strong { font-weight: 500; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 4px; }
footer .legal { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.35); font-size: 14px; color: var(--white); }
footer .legal a { color: var(--white); }
@media (min-width: 720px) { footer .cols { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
