/* ==========================================================================
   Kijanto site styles
   Layout idea: a drawing sheet. Left-aligned content on graph paper. One line
   (the spine) runs down the left edge from the page title through a node at
   each section and ends in the amber dot at the booking calendar.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* colour */
  --paper: #F2F5F4;        /* cool graph-paper white */
  --sheet: #FCFDFC;        /* a clean sheet laid over the grid */
  --ink: #13222D;          /* blue-black drafting ink */
  --pencil: #485A66;       /* secondary text */
  --rule: #B4C4CB;         /* quiet outlines */
  --amber: #F4A300;        /* the dot */
  --grid-minor: rgba(46, 92, 120, .085);
  --grid-major: rgba(46, 92, 120, .145);
  --hatch: repeating-linear-gradient(135deg, transparent 0 4px, rgba(19, 34, 45, .17) 4px 5px);

  /* type: one family, three widths */
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wide: 116%;            /* headings */
  --narrow: 88%;           /* annotations */
  --step--1: .8125rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.1875rem, 1.1rem + .45vw, 1.3125rem);
  --step-2: clamp(1.6rem, 1.25rem + 1.6vw, 2.3rem);
  --step-3: clamp(2.05rem, 1.25rem + 3.6vw, 3.5rem);

  /* drawing */
  --g: 20px;               /* graph-paper unit */
  --gutter: var(--g);
  --indent: var(--g);      /* text indent to the right of the spine */
  --stroke: 1.5px;
}
@media (min-width: 720px) {
  :root { --g: 24px; --indent: calc(var(--g) * 2); }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--font);
  font-stretch: 100%;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--grid-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-major) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-minor) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-minor) 1px, transparent 1px);
  background-size:
    calc(var(--g) * 5) calc(var(--g) * 5),
    calc(var(--g) * 5) calc(var(--g) * 5),
    var(--g) var(--g),
    var(--g) var(--g);
  background-position: 0 0;
  -webkit-font-smoothing: antialiased;
}
/* From this width the content column is centred; shift the grid so the spine still sits on a line. */
@media (min-width: 1176px) {
  body { background-position: calc(50% - 24px) 0, calc(50% - 24px) 0, 50% 0, 50% 0; }
}

h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }

h1, h2, h3 {
  font-stretch: var(--wide);
  font-weight: 680;
  letter-spacing: -.012em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--step-3); line-height: 1.06; }
h2 { font-size: var(--step-2); line-height: 1.15; }
h3 { font-size: var(--step-1); line-height: 1.25; font-weight: 650; }
p { max-width: 64ch; text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  background: var(--ink); color: var(--sheet); padding: 10px 14px;
}
.skip:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: calc(1128px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  border-bottom: var(--stroke) solid var(--ink);
}
.top__in {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 14px; min-height: 56px; padding-block: 8px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  text-decoration: none; font-stretch: var(--wide); font-weight: 720;
  font-size: 1.125rem; letter-spacing: -.01em;
}
.brand svg { width: 34px; height: 16px; flex: none; }
.top nav { display: flex; align-items: center; gap: 14px; }
.top nav a { font-size: .9375rem; font-weight: 500; text-decoration: none; padding: 6px 0; }
.top nav a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2.5px; }
.lang {
  font-size: .8125rem; font-weight: 650; font-stretch: var(--narrow); letter-spacing: .05em;
  text-decoration: none; padding: 3px 8px; border: var(--stroke) solid var(--ink);
}
.lang:hover { background: var(--ink); color: var(--sheet); }
@media (max-width: 420px) {
  .top__in, .top nav { gap: 4px 11px; }
  .top nav a { font-size: .875rem; }
  .brand { gap: 8px; font-size: 1.0625rem; }
  .brand svg { width: 30px; height: 14px; }
}
@media (max-width: 380px) {
  .top__in, .top nav { gap: 4px 7px; }
  .top nav a { font-size: .75rem; }
  .brand { gap: 6px; font-size: 1rem; }
  .brand svg { width: 26px; height: 12px; }
  .lang { padding: 2px 5px; }
}
.nav__long { display: none; }
@media (min-width: 560px) {
  .nav__long { display: inline; }
  .nav__short { display: none; }
  .top__in, .top nav { gap: 4px 26px; }
}

/* ------------------------------------------------------- spine and sections */
.sec {
  position: relative;
  padding: 0 0 calc(var(--g) * 4) var(--indent);
  scroll-margin-top: 84px;
}
.sec::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  border-left: var(--stroke) solid var(--ink);
}
.n { position: relative; }
.n::before {
  content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%;
  border: var(--stroke) solid var(--ink); background: var(--paper);
  left: calc(var(--indent) * -1 - 5.75px);
  top: .32em; top: calc(.5lh - 6.5px);
}
.n--start::before { background: var(--ink); }
.n--amber::before {
  width: 17px; height: 17px; border: 0; background: var(--amber);
  left: calc(var(--indent) * -1 - 7.75px);
  top: .26em; top: calc(.5lh - 8.5px);
  box-shadow: 0 0 0 5px rgba(244, 163, 0, .2);
}
.sec--first { padding-top: calc(var(--g) * 3); }
.sec--first::before { top: calc(var(--g) * 3 + var(--step-3) * .53); }
.sec--end { padding-bottom: calc(var(--g) * 3); }
.sec--end::before { bottom: auto; height: calc(var(--step-2) * .575); }
.sec--solo::before { display: none; }

.sec > h2 + p, .sec > h1 + p { margin-top: var(--g); }
.sec__body { margin-top: calc(var(--g) * 1.5); }

/* -------------------------------------------------------------------- hero */
.hero__in { display: grid; gap: calc(var(--g) * 2); align-items: center; }
@media (min-width: 960px) {
  .hero__in { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: calc(var(--g) * 3); }
}
.lede { font-size: var(--step-1); line-height: 1.45; max-width: 33em; margin-top: var(--g); }
.proof { margin-top: calc(var(--g) * .75); color: var(--pencil); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px var(--g); margin-top: calc(var(--g) * 1.5); }
.note { margin-top: 12px; max-width: none; font-size: var(--step--1); color: var(--pencil); }

.btn {
  display: inline-flex; align-items: center; gap: .65em;
  padding: .82em 1.2em .82em 1em;
  background: var(--ink); color: var(--sheet);
  border: var(--stroke) solid var(--ink); border-radius: 2px;
  font: 620 1rem/1.2 var(--font); font-stretch: 106%;
  text-decoration: none; cursor: pointer;
}
.btn .dot { width: .72em; height: .72em; border-radius: 50%; background: var(--amber); flex: none; transition: box-shadow .15s ease-out; }
.btn:hover .dot, .btn:focus-visible .dot { box-shadow: 0 0 0 4px rgba(244, 163, 0, .32); }
.btn[disabled] { opacity: .55; cursor: default; }
.link { font-weight: 550; }

.fig svg { display: block; width: 100%; height: auto; background: var(--sheet); border: var(--stroke) solid var(--ink); }
.fig figcaption {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-top: 10px;
  font-size: var(--step--1); font-stretch: var(--narrow); font-weight: 550; letter-spacing: .03em; color: var(--pencil);
}
.fig figcaption span:nth-child(2) { color: var(--ink); }
.fig figcaption span:last-child { text-align: right; }
.f-grid { stroke: var(--grid-minor); stroke-width: 1; }
.f-guide { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 5; fill: none; }
.f-line { stroke: var(--ink); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.f-node { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.5; }
.f-hubdot { fill: var(--ink); }
.f-link { stroke: var(--ink); stroke-width: 2.5; fill: none; }
.f-amber { fill: var(--amber); }
.f-halo { fill: var(--amber); opacity: .2; }
@media (prefers-reduced-motion: no-preference) {
  .f-link { stroke-dasharray: 80; animation: f-draw .7s .35s ease-out both; }
  .f-amber { transform-box: fill-box; transform-origin: center; animation: f-pop .45s .95s cubic-bezier(.2, 1.4, .4, 1) both; }
  .f-halo { transform-box: fill-box; transform-origin: center; animation: f-halo 1.6s 1.2s ease-out both; }
}
@keyframes f-draw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
@keyframes f-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes f-halo { 0% { transform: scale(.4); opacity: .55; } 100% { transform: scale(1); opacity: .2; } }

/* ------------------------------------------------------------------- zones */
.zones { position: relative; display: grid; gap: var(--g); margin-top: calc(var(--g) * 1.5); }
.zones::before {
  content: ""; position: absolute; left: calc(var(--g) * 1.5); top: 0; bottom: 0;
  border-left: var(--stroke) solid var(--ink);
}
.zone {
  position: relative; background: var(--sheet);
  border: var(--stroke) solid var(--ink); padding: var(--g);
}
.zone h3 { margin-bottom: 8px; }
.zone li { position: relative; padding-left: 16px; }
.zone li + li { margin-top: 4px; }
.zone li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; border-top: var(--stroke) solid var(--ink); }
.zone__note { margin-top: 12px; font-size: var(--step--1); font-stretch: var(--narrow); font-weight: 600; letter-spacing: .03em; color: var(--pencil); }
.zone--gap { border-width: 2.5px; }
.zone--gap .zone__note { color: var(--ink); }
.zone--gap::after {
  content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: var(--amber);
  top: -9px; left: calc(var(--g) * 1.5 - 8px); box-shadow: 0 0 0 4px var(--sheet);
}
@media (min-width: 900px) {
  .zones { grid-template-columns: 1fr 1.15fr 1fr; gap: calc(var(--g) * 2); align-items: stretch; }
  .zones::before { left: 0; right: 0; top: 50%; bottom: auto; border-left: 0; border-top: var(--stroke) solid var(--ink); }
  .zone--gap::after { top: calc(50% - 7.5px); left: -9px; }
}

/* -------------------------------------------------------------- experience */
.xp { margin-top: calc(var(--g) * 1.5); border-top: var(--stroke) solid var(--ink); }
.xp__row { display: grid; gap: 10px; padding: var(--g) 0; border-bottom: 1px solid var(--rule); }
.xp__row:last-child { border-bottom: var(--stroke) solid var(--ink); }
@media (min-width: 820px) {
  .xp__row { grid-template-columns: 17rem minmax(0, 1fr); gap: calc(var(--g) * 2); }
}
.xp__big { display: block; font-stretch: var(--wide); font-weight: 700; font-size: 1.7rem; line-height: 1.1; letter-spacing: -.015em; }
.xp__where { display: block; margin-top: 6px; font-weight: 600; line-height: 1.35; }
.xp__when { display: block; margin-top: 2px; font-size: var(--step--1); color: var(--pencil); }
.xp__stack { margin-top: 8px; font-size: var(--step--1); color: var(--pencil); }

/* ------------------------------------------------------------------- steps */
.steps { display: grid; gap: calc(var(--g) * 1.5); margin-top: calc(var(--g) * 2); }
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--g) * 2); }
}
.steps li { position: relative; padding-top: var(--g); border-top: var(--stroke) solid var(--ink); }
.steps li::before {
  content: ""; position: absolute; top: -7.25px; left: 0; width: 13px; height: 13px; border-radius: 50%;
  border: var(--stroke) solid var(--ink); background: var(--paper);
}
.steps__wk { display: block; margin-bottom: 4px; font-size: var(--step--1); font-stretch: var(--narrow); font-weight: 600; letter-spacing: .03em; color: var(--pencil); }
.steps h3 { margin-bottom: 6px; }
.after { margin-top: calc(var(--g) * 1.5); }

/* ------------------------------------------------------------------- rules */
.rules { display: grid; gap: calc(var(--g) * 1.25) calc(var(--g) * 2); margin-top: calc(var(--g) * 1.5); }
@media (min-width: 820px) { .rules { grid-template-columns: 1fr 1fr; } }
.rules li { padding-top: 14px; border-top: 1px solid var(--rule); }
.rules h3 { margin-bottom: 6px; }
.policy {
  margin-top: calc(var(--g) * 2); max-width: 46rem;
  background: var(--sheet); border: var(--stroke) solid var(--ink); padding: var(--g);
}
.policy h3 { font-size: var(--step-0); margin-bottom: 6px; }

/* ---------------------------------------------------------------- problems */
.prob { padding-bottom: calc(var(--g) * 2.75); }
.prob h2 { font-size: clamp(1.3rem, 1.12rem + .9vw, 1.7rem); line-height: 1.2; max-width: 27em; }
.prob__grid { display: grid; gap: 14px; margin-top: var(--g); }
@media (min-width: 900px) {
  .prob__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--g) * 1.5); }
}
.prob__grid h3 { margin-bottom: 4px; font-size: var(--step--1); font-stretch: var(--narrow); font-weight: 600; letter-spacing: .03em; color: var(--pencil); }

/* ----------------------------------------------------------------- privacy */
.prose h2 { font-size: var(--step-1); margin-top: calc(var(--g) * 1.5); margin-bottom: 6px; }
.prose .updated { margin-top: calc(var(--g) * 1.5); font-size: var(--step--1); color: var(--pencil); }

/* ----------------------------------------------------------------- booking */
.bk {
  margin-top: calc(var(--g) * 1.5);
  background: var(--sheet); border: var(--stroke) solid var(--ink);
  padding: 16px; display: grid; gap: var(--g);
}
@media (max-width: 719px) {
  .sec--end .bk, .sec--solo .bk { margin-left: calc(var(--indent) * -1); }
}
@media (min-width: 960px) {
  .bk { padding: calc(var(--g) * 1.5); }
}
.field { display: grid; gap: 5px; }
.field label { font-size: .875rem; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--sheet); border: var(--stroke) solid var(--ink); border-radius: 2px;
}
.field textarea { min-height: 5.5em; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline-offset: 2px; }
.field [aria-invalid="true"] { box-shadow: inset 4px 0 0 var(--amber); }
.err { font-size: var(--step--1); font-weight: 600; }
.textbtn { padding: 0; font: inherit; font-weight: 550; color: var(--ink); background: none; border: 0; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; cursor: pointer; }
.textbtn:hover { text-decoration-thickness: 2.5px; }

/* contact form */
.cf { display: grid; gap: 16px; max-width: 46rem; }
.cf__pair { display: grid; gap: 16px; }
@media (min-width: 640px) { .cf__pair { grid-template-columns: 1fr 1fr; } }
.cf__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 19px) 55%, calc(100% - 13px) 55%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field input[type="file"] { padding: 8px; font-size: .9375rem; border-style: dashed; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 7px 12px; font: inherit; font-weight: 600; color: var(--ink);
  background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: 2px; cursor: pointer;
}
.hint { font-size: var(--step--1); color: var(--pencil); line-height: 1.4; }
.cf__typehint { margin-top: -8px; }
.cf__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cf__row .hint { flex: 1 1 16rem; }
.cf__done { display: grid; gap: 10px; max-width: 46rem; }
.cf__done h3 { font-size: var(--step-1); display: flex; align-items: baseline; gap: 10px; }
.cf__done h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.cf__done:focus { outline: none; }
.cf[hidden], .cf [hidden], .cf__done[hidden] { display: none; }

/* ------------------------------------------------------------------ footer */
.foot { padding: 0 0 calc(var(--g) * 2); }
.tb { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1px; background: var(--ink); border: var(--stroke) solid var(--ink); }
.tb > div { background: var(--sheet); padding: 12px 14px; min-width: 0; }
.tb dt, .tb__k { display: block; font-size: .75rem; font-stretch: var(--narrow); font-weight: 600; letter-spacing: .04em; color: var(--pencil); }
.tb__v { display: block; font-size: 1rem; font-weight: 650; overflow-wrap: anywhere; }
.tb__v a { white-space: nowrap; }
.tb__s { display: block; font-size: var(--step--1); color: var(--pencil); line-height: 1.35; }
@media (max-width: 349px) {
  .tb { grid-template-columns: 1fr; }   /* very narrow phones: one cell per row, so the name and email never cross a border */
}
@media (min-width: 640px) {
  .tb { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1120px) {
  .tb { grid-template-columns: 1.15fr 1fr 1.1fr 1.15fr 1.1fr 1.15fr; }
}
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-size: var(--step--1); color: var(--pencil); }
.foot__legal p { max-width: none; }
