/* MetOcean Consult, "Chart puzzle" concept: Sailing directions (services.html). */
:root {
  --navy: #002E41;
  --ink: #002E41;
  --ink-2: rgba(0, 46, 65, .74);
  --ink-3: rgba(0, 46, 65, .5);
  --blue: #AACCFF;
  --tint: #EAF1FB;
  --rule: #CBD8E6;
  --paper: #FBFAF5;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--paper); padding: .5em .8em; border: 1px solid var(--navy); z-index: 9; }
.skip:focus { top: 12px; }

/* head: a band of the chart, cut by the puzzle */
.top { position: relative; height: clamp(150px, 22vw, 260px); background: #EEF3F8; border-bottom: 1px solid var(--navy); overflow: hidden; }
.strip { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.strip.is-ready { opacity: 1; }
.top__in { position: relative; max-width: 1180px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.brand { display: block; background: var(--paper); padding: 10px 14px 8px; border: 1px solid var(--navy); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(0, 46, 65, .5); }
.brand img { display: block; width: clamp(150px, 18vw, 220px); height: auto; }
.back { font-family: var(--sans); font-size: .9rem; background: var(--paper); border: 1px solid rgba(0, 46, 65, .5); padding: .35rem .7rem; text-decoration: none; }
.back:hover { background: var(--tint); }

main { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.intro { padding: 56px 0 24px; margin-left: 260px; max-width: 42em; }
h1 { font-weight: 400; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; margin: 0 0 1.2rem; letter-spacing: -.01em; }
.intro__lede { font-size: 1.32rem; line-height: 1.5; margin: 0 0 1rem; }
.intro p { max-width: 36em; }

.cat { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--navy); columns: 2; column-gap: 2.2rem; }
.cat li { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.cat a { display: grid; grid-template-columns: 2.1rem 1fr; gap: 0 .5rem; padding: .55rem 0; text-decoration: none; }
.cat a:hover .cat__t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.cat__l { grid-row: span 2; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-top: .15rem; border-radius: 50%; background: var(--navy); color: var(--paper); font: 600 .76rem/1 var(--sans); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px rgba(0, 46, 65, .7); }
.cat__t { font-size: 1.05rem; line-height: 1.3; }
.cat__p { font-style: italic; font-size: .86rem; color: var(--ink-2); line-height: 1.35; }

/* one note */
.sd { display: grid; grid-template-columns: 220px minmax(0, 42em); gap: 0 40px; padding: 64px 0 40px; border-top: 1px solid var(--navy); margin-top: 40px; scroll-margin-top: 12px; }
.sd__margin { position: relative; }
.sd__piece { display: block; width: 190px; height: 190px; margin: -18px 0 4px -18px; opacity: 0; transition: opacity .5s ease; }
.sd__piece.is-ready { opacity: 1; }
.sd__ref { font-family: var(--sans); font-size: .86rem; font-weight: 500; margin: 0 0 .3rem; display: flex; align-items: center; gap: .5em; }
.sd__l { display: inline-grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--navy); color: var(--paper); font-weight: 600; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--navy); }
.sd__place { font-style: italic; color: var(--ink-2); font-size: .98rem; line-height: 1.4; margin: 0 0 .6rem; }
.sd__go { font-family: var(--sans); font-size: .86rem; margin: 0; }
.sd h2 { font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.05; margin: 0 0 1rem; letter-spacing: -.01em; }
.sd__lede { font-size: 1.3rem; line-height: 1.5; margin: 0 0 1.4rem; }
.sd p { margin: 0 0 1rem; }
.sd h3 { font-family: var(--sans); font-weight: 600; font-size: .98rem; margin: 1.8rem 0 .5rem; padding-top: .8rem; border-top: 1px solid var(--rule); }
.sd ul { list-style: none; margin: 0; padding: 0; }
.sd li { position: relative; padding-left: 1.3em; margin: 0 0 .35rem; }
.sd li::before { content: ""; position: absolute; left: .1em; top: .8em; width: .6em; height: 1px; background: var(--navy); }
.sd__q li { font-style: italic; }
.sd__contact { font-size: 1.6rem; line-height: 1.45; }

.fig { margin: 2rem 0 0; }
.fig__plate { position: relative; aspect-ratio: 16 / 9; border: 1px solid rgba(0, 46, 65, .45); outline: 4px solid var(--paper); box-shadow: 0 0 0 5px rgba(0, 46, 65, .22);
  background: repeating-linear-gradient(0deg, rgba(0, 46, 65, .05) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(0, 46, 65, .05) 0 1px, transparent 1px 24px), #FDFCF8; }
.fig__plate::before { content: ""; position: absolute; left: 10%; right: 5%; top: 9%; bottom: 14%; border-left: 1px solid rgba(0, 46, 65, .45); border-bottom: 1px solid rgba(0, 46, 65, .45); }
.fig__plate span { position: absolute; inset: 0; display: grid; place-items: center; font-style: italic; color: var(--ink-3); font-size: 1rem; }
.fig__plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.fig figcaption { margin-top: .6rem; font-family: var(--sans); font-size: .86rem; color: var(--ink-2); }
.fig figcaption b { color: var(--ink); font-weight: 600; }

/* glossary */
.gloss { border-top: 1px solid var(--navy); margin-top: 40px; padding: 56px 0 40px 260px; }
.gloss h2 { font-weight: 400; font-size: 2.6rem; line-height: 1; margin: 0 0 .4rem; }
.gloss__lede { color: var(--ink-2); margin: 0 0 1.6rem; }
.gloss dl { margin: 0; columns: 2; column-gap: 2.4rem; }
.gloss dl > div { break-inside: avoid; padding: .55rem 0 .6rem; border-top: 1px solid var(--rule); }
.gloss dt { font-style: italic; font-size: 1.12rem; }
.gloss dd { margin: .1rem 0 0; font-size: .98rem; line-height: 1.5; }

.foot { border-top: 1px solid var(--navy); padding: 28px 24px 40px; text-align: center; font-size: 1.15rem; }
.foot p { margin: 0 0 .4rem; }
.foot__s { font-family: var(--sans); font-size: .8rem; color: var(--ink-3); }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .intro, .gloss { margin-left: 0; padding-left: 0; }
  .sd { grid-template-columns: 1fr; padding-top: 40px; }
  .sd__margin { display: grid; grid-template-columns: 110px 1fr; gap: 0 14px; align-items: center; margin-bottom: 1rem; }
  .sd__piece { width: 120px; height: 120px; margin: -10px 0 -10px -10px; grid-row: span 3; }
  .cat, .gloss dl { columns: 1; }
}

.sd__track { margin: 0 0 1.4rem; padding: .6rem 0 .6rem 1rem; border-left: 2px solid currentColor; font-style: italic; }
.sd__track span { display: block; font-style: normal; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: .2rem; }

.backs { display: flex; gap: .5rem; flex-wrap: wrap; }
