/* Asmat Travels: single stylesheet. Prefix asm-. Brick and Frost palette. */

@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/alegreya-500.woff2") format("woff2");
}

@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/static/fonts/alegreya-800.woff2") format("woff2");
}

:root {
  --frost: #eef1f0;
  --frost-dim: #dee3e2;
  --card: #f8faf9;
  --ink: #1b2220;
  --ink-mild: #414b47;
  --faded: #6e7a75;
  --brick: #9c4a2f;
  --brick-deep: #7b3721;
  --brick-wash: #f4e7e1;
  --pond: #3f6470;
  --pond-deep: #2c4a54;
  --line: #ccd2cf;
  --line-strong: #9fa8a3;
  --dusk: #171d1b;
  --good: #2f6b4a;
  --bad: #8f2f22;
  --head: "Alegreya", "Hoefler Text", "Baskerville Old Face", Baskerville, Georgia, serif;
  --body: "Lucida Grande", "Lucida Sans Unicode", "Fira Sans", Tahoma, sans-serif;
  --bar-h: 66px;
  --wrap: 1160px;
  --col: 700px;
}

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

body, h1, h2, h3, p, ul, ol, figure { margin: 0 }

html {
  background: var(--frost);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--frost);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.59;
  min-height: 100%;
}

img, svg { display: block; max-width: 100%; height: auto }

a { color: var(--brick-deep) }
a:hover { color: var(--brick) }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: 0.005em;
}

h1 { font-size: 30px }
h2 { font-size: 24px }
h3 { font-size: 20px }
h4 { font-size: 17px; font-weight: 500 }

p + p { margin-top: 0.9em }

ul, ol { padding-left: 1.15em }
li { margin-top: 0.4em }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}

.asm-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 18px;
}

.asm-col { max-width: var(--col); margin: 0 auto }

/* Uppercase labels: 11px, 0.14em. No small caps anywhere. */
.asm-label,
.asm-kicker,
.asm-zig-no,
.asm-meta-k,
.asm-field-k,
.asm-foot-h,
.asm-entry-meta,
.asm-zig-meta,
.asm-note-h {
  font-family: var(--body);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.45;
  font-weight: 700;
}

.asm-zig-meta,
.asm-entry-meta,
.asm-meta-v,
.asm-field-v,
.asm-facts-n,
.asm-num { font-variant-numeric: tabular-nums }

/* ---------- skip link ---------- */

.asm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 90;
  background: var(--brick);
  color: var(--frost);
  padding: 12px 18px;
  text-decoration: none;
}

.asm-skip:focus {
  left: 8px;
  top: 8px;
  color: var(--frost);
}

/* ---------- header bar ---------- */

.asm-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--bar-h);
  background: rgba(238, 241, 240, 0.92);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  border-bottom: 1px solid var(--line-strong);
}

.asm-bar.is-anchored { box-shadow: 0 2px 10px rgba(23, 29, 27, 0.11) }

.asm-bar-in {
  position: relative;
  height: var(--bar-h);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Under the burger threshold the wordmark holds the center of the bar. */
.asm-mark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}

.asm-mark img { width: 30px; height: 30px }

.asm-mark-word {
  font-family: var(--head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.asm-nav { display: none }

.asm-nav a {
  color: var(--ink-mild);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.asm-nav a:hover,
.asm-nav a.is-here {
  color: var(--brick-deep);
  border-bottom-color: var(--brick);
}

.asm-nav-left { justify-content: flex-start }
.asm-nav-right { justify-content: flex-end }

.asm-chip {
  border: 1px solid var(--pond);
  border-bottom-width: 3px;
  color: var(--pond-deep);
  padding: 6px 11px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.asm-nav a.asm-chip:hover {
  background: var(--pond);
  color: var(--frost);
  border-bottom-color: var(--pond-deep);
}

.asm-burger {
  width: 46px;
  height: 46px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.asm-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
}

.asm-burger[aria-expanded="true"] { background: var(--brick-wash) }

.asm-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--bar-h);
  background: var(--card);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 10px 18px rgba(23, 29, 27, 0.12);
  padding: 10px 18px 20px;
}

.asm-panel[hidden] { display: none }

.asm-panel a {
  display: block;
  padding: 12px 2px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.asm-panel a:last-child { border-bottom: 0 }
.asm-panel a:hover { color: var(--brick-deep) }

/* ---------- storage note, in the flow under the bar ---------- */

.asm-note {
  background: var(--brick-wash);
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--brick);
}

.asm-note[hidden] { display: none }

.asm-note-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.asm-note-h { color: var(--brick-deep) }

.asm-note-t {
  font-size: 15px;
  color: var(--ink-mild);
  max-width: 74ch;
}

.asm-note-acts { display: flex; flex-wrap: wrap; gap: 10px }

/* ---------- buttons ---------- */

.asm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 0;
  border: 1px solid var(--brick);
  border-bottom-width: 3px;
  background: var(--brick);
  color: var(--frost);
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms linear, color 140ms linear;
}

.asm-btn:hover {
  background: var(--brick-deep);
  border-color: var(--brick-deep);
  color: var(--frost);
}

.asm-btn-line {
  background: transparent;
  color: var(--brick-deep);
  border-color: var(--line-strong);
  border-bottom-color: var(--brick);
}

.asm-btn-line:hover {
  background: var(--brick-wash);
  color: var(--brick-deep);
  border-color: var(--brick);
}

.asm-btn[disabled] { opacity: 0.65; cursor: default }

/* ---------- hero ---------- */

.asm-hero { padding: 26px 0 6px }

.asm-card {
  background: var(--card);
  border: 1px solid var(--line);
}

.asm-hero-card {
  border-top: 5px solid var(--brick);
  padding: 24px 18px 22px;
}

.asm-kicker { color: var(--brick-deep); margin-bottom: 12px }

.asm-hero-card h1 { font-size: 32px; max-width: 22ch }

.asm-hero-sub {
  margin-top: 14px;
  font-size: 18px;
  color: var(--ink-mild);
  max-width: 60ch;
}

.asm-hero-acts {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.asm-meta-table {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
}

.asm-meta-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.asm-meta-k { color: var(--faded) }
.asm-meta-v { font-size: 16px; color: var(--ink) }

.asm-facts {
  list-style: none;
  padding: 0;
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.asm-facts li {
  margin: 0;
  background: var(--frost-dim);
  border-left: 3px solid var(--pond);
  padding: 13px 15px;
  font-size: 15px;
  color: var(--ink-mild);
}

/* ---------- generic sections ---------- */

.asm-sec { padding: 30px 0 }

.asm-open { padding-bottom: 4px }

.asm-sec h2,
.asm-prose h2,
.asm-block h2 {
  padding-left: 14px;
  border-left: 3px solid var(--brick);
  margin-bottom: 14px;
}

.asm-sec h3 { margin-top: 22px; margin-bottom: 6px }

.asm-lead {
  margin-top: 14px;
  font-size: 19px;
  color: var(--ink-mild);
  max-width: 62ch;
}

.asm-stamp { margin-top: 12px; color: var(--faded) }

.asm-open-lead > p:first-child {
  font-size: 19px;
  color: var(--ink-mild);
}

.asm-more { margin-top: 18px }

.asm-block h2 { margin-top: 10px }

.asm-prose > * + * { margin-top: 1em }
.asm-prose h2 { margin-top: 34px }
.asm-prose h3 { margin-top: 26px; margin-bottom: 0 }
.asm-prose ul, .asm-prose ol { padding-left: 1.3em }

/* ---------- zigzag listing ---------- */

.asm-zig {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.asm-zig-row {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.asm-zig-fig { flex: 0 0 auto; margin: 0 }

.asm-zig-fig img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--frost-dim);
}

.asm-zig-body { flex: 1 1 auto; min-width: 0 }

.asm-zig-no { color: var(--brick); margin-bottom: 8px }

.asm-zig-h { font-size: 22px; line-height: 1.2 }

.asm-zig-h a { color: var(--ink); text-decoration: none }
.asm-zig-h a:hover { color: var(--brick-deep) }

.asm-zig-teaser {
  margin-top: 9px;
  color: var(--ink-mild);
  font-size: 16px;
  max-width: 62ch;
}

.asm-zig-meta {
  margin-top: 12px;
  color: var(--faded);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-weight: 700;
}

/* ---------- article ---------- */

.asm-entry { padding: 22px 0 10px }

.asm-entry-banner { margin-bottom: 18px }

.asm-entry-banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--frost-dim);
}

.asm-entry-cap {
  margin-top: 8px;
  font-size: 14px;
  color: var(--faded);
}

.asm-entry-meta {
  color: var(--faded);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.asm-entry h1 { font-size: 31px }

.asm-deck {
  margin-top: 12px;
  font-size: 19px;
  color: var(--ink-mild);
}

.asm-field {
  margin: 24px 0 28px;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--frost-dim);
  padding: 16px 18px;
  display: grid;
  gap: 12px;
}

.asm-field-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.asm-field-row:last-child { padding-bottom: 0; border-bottom: 0 }
.asm-field-k { color: var(--pond-deep) }
.asm-field-v { font-size: 16px }

.asm-checked {
  margin-top: 34px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.asm-checked ul { list-style: none; padding-left: 0 }

.asm-checked li {
  padding-left: 16px;
  border-left: 2px solid var(--line-strong);
  color: var(--ink-mild);
  font-size: 16px;
}

.asm-byline {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px 16px;
}

.asm-byline img {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  flex: 0 0 auto;
}

.asm-byline p { font-size: 15px; color: var(--ink-mild) }
.asm-byline .asm-label { color: var(--brick-deep); display: block }

.asm-also { margin-top: 30px }

.asm-also ul { list-style: none; padding-left: 0; border-top: 1px solid var(--line) }

.asm-also li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.asm-also a {
  display: block;
  padding: 13px 0;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.asm-also a:hover { color: var(--brick-deep) }
.asm-also span { display: block; color: var(--faded) }

/* ---------- forms ---------- */

.asm-form { max-width: var(--col) }

.asm-field-set {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.asm-form label {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--ink-mild);
}

.asm-form input,
.asm-form select,
.asm-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}

.asm-form textarea { min-height: 168px; resize: vertical }

/* Fields keep the brick border and wash on any focus. The keyboard outline above
   is never removed, so a tabbed field still shows a visible brick ring. */
.asm-form input:focus,
.asm-form select:focus,
.asm-form textarea:focus {
  border-color: var(--brick);
  box-shadow: 0 0 0 3px var(--brick-wash);
}

.asm-form input:focus:not(:focus-visible),
.asm-form select:focus:not(:focus-visible),
.asm-form textarea:focus:not(:focus-visible) { outline: none }

.asm-hp {
  position: absolute;
  left: -4000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.asm-form-fine {
  margin-top: 12px;
  font-size: 14px;
  color: var(--faded);
}

.asm-form-note {
  margin-top: 12px;
  font-size: 15px;
  color: var(--bad);
  min-height: 1px;
}

.asm-form-note.is-good { color: var(--good) }

/* ---------- margin panel and small blocks ---------- */

.asm-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--pond);
  padding: 22px 18px;
}

.asm-block .asm-label { color: var(--pond-deep) }

.asm-margin-form {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  max-width: none;
}

.asm-margin-line {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.asm-margin-input { flex: 1 1 auto; min-width: 0 }

.asm-margin-form .asm-btn { flex: 0 0 auto }

.asm-steps { counter-reset: none }

.asm-steps li { margin-top: 10px; padding-left: 4px }

.asm-rows { display: grid; gap: 0; border-top: 1px solid var(--line) }

.asm-rows-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.asm-rows-k {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--faded);
}

.asm-rows-v { font-size: 16px; font-variant-numeric: tabular-nums }

/* ---------- footer, two bands ---------- */

.asm-foot { margin-top: 44px }

.asm-foot-top {
  background: var(--frost-dim);
  border-top: 6px solid var(--brick);
  padding: 30px 0 26px;
}

.asm-foot-cols { display: grid; gap: 26px }

.asm-foot-h {
  color: var(--faded);
  margin-bottom: 12px;
}

.asm-foot-col ul { list-style: none; padding-left: 0 }
.asm-foot-col li { margin-top: 0 }

.asm-foot-col a {
  display: inline-block;
  padding: 7px 0;
  color: var(--ink-mild);
  text-decoration: none;
  font-size: 15px;
}

.asm-foot-col a:hover { color: var(--brick-deep); text-decoration: underline }

.asm-foot-org { display: flex; align-items: center; gap: 10px; margin-bottom: 10px }
.asm-foot-org img { width: 26px; height: 26px }

.asm-foot-org strong {
  font-family: var(--head);
  font-weight: 800;
  font-size: 17px;
}

.asm-foot-col p { font-size: 15px; color: var(--ink-mild) }
.asm-foot-col address { font-style: normal; font-size: 15px; color: var(--ink-mild) }

.asm-foot-low {
  background: var(--dusk);
  color: var(--frost);
  padding: 20px 0 24px;
}

.asm-copy {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.asm-shield {
  margin-top: 9px;
  font-size: 13px;
  color: #b7c0bc;
  max-width: 92ch;
}

/* ---------- back to top ---------- */

.asm-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 55;
  width: 46px;
  height: 46px;
  border-radius: 3px;
  border: 1px solid var(--brick-deep);
  border-bottom-width: 3px;
  background: var(--brick);
  color: var(--frost);
  display: none;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.asm-top.is-shown { display: grid }
.asm-top:hover { background: var(--brick-deep) }
.asm-top svg { width: 20px; height: 20px }

/* ---------- micro pages ---------- */

.asm-micro { padding: 44px 0 20px; text-align: left }
.asm-micro h1 { font-size: 30px }
.asm-micro p { margin-top: 14px; color: var(--ink-mild); max-width: 60ch }
.asm-micro-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px }

/* ---------- motion ---------- */

/* Progressive enhancement: text is visible by default. The fade only exists once
   the script has marked the document with asm-js, so no content needs JavaScript. */
.asm-js .asm-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 460ms ease-out, transform 460ms ease-out;
}

.asm-js .asm-fade.is-inked {
  opacity: 1;
  transform: none;
}

/* ---------- focus ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 2px;
}

/* ---------- breakpoints ---------- */

@media (min-width: 480px) {
  .asm-hero-card { padding: 30px 26px 26px }
  .asm-hero-card h1 { font-size: 36px }
  .asm-note-in { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap }
  .asm-note-acts { flex: 0 0 auto }
  .asm-margin-line { flex-direction: row; align-items: flex-end; gap: 14px }
  .asm-facts { grid-template-columns: repeat(3, 1fr) }
}

@media (min-width: 768px) {
  body { font-size: 17px }
  .asm-wrap { padding: 0 26px }
  h1 { font-size: 34px }
  h2 { font-size: 26px }
  .asm-hero-card h1 { font-size: 42px }
  .asm-entry h1 { font-size: 38px }
  .asm-meta-table { grid-template-columns: 1fr 1fr; column-gap: 26px }
  .asm-field { grid-template-columns: 1fr 1fr; column-gap: 26px }
  .asm-rows { grid-template-columns: 1fr 1fr; column-gap: 26px }
  .asm-zig-row { flex-direction: row; align-items: center; gap: 26px; padding: 30px 0 }
  .asm-zig-row:nth-child(even) { flex-direction: row-reverse }
  .asm-zig-fig { flex: 0 0 38%; max-width: 38% }
  .asm-foot-cols { grid-template-columns: 1fr 1fr }
  .asm-micro { padding: 64px 0 30px }
}

@media (min-width: 860px) {
  .asm-burger { display: none }
  .asm-panel { display: none }
  .asm-nav { display: flex; align-items: center; gap: 20px; flex: 1 1 0 }
  .asm-bar-in { padding: 0 20px }
  .asm-mark { position: static; transform: none }
}

@media (min-width: 1024px) {
  .asm-hero { padding: 38px 0 10px }
  .asm-hero-card { padding: 38px 40px 34px }
  .asm-hero-card h1 { font-size: 48px }
  .asm-sec { padding: 38px 0 }
  .asm-foot-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px }
  .asm-nav { gap: 26px }
}

@media (min-width: 1200px) {
  .asm-wrap { padding: 0 30px }
  .asm-hero-card h1 { font-size: 52px }
  .asm-zig-h { font-size: 25px }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .asm-js .asm-fade { opacity: 1; transform: none; transition: none }
  .asm-btn { transition: none }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important }
}

@media print {
  .asm-bar, .asm-note, .asm-top, .asm-panel, .asm-foot-low, .asm-skip { display: none }
  body { background: #ffffff; color: #000000; font-size: 12pt }
  .asm-wrap { max-width: none; padding: 0 }
  .asm-zig-row { break-inside: avoid }
  a { color: #000000; text-decoration: none }
}
