:root {
  --water: #06262b;
  --foam: #f4f1ea;
  --sand: #d7c4a3;
  --deep: #04191d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--water);
  color: var(--foam);
  font-family: "Nunito Sans", sans-serif;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--sand); }
h1, h2, h3 { font-family: "Libre Baskerville", serif; font-weight: 400; line-height: 1.25; margin: 0 0 0.45em; color: var(--foam); }
.bands {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bands i {
  position: absolute;
  left: 0;
  height: 18px;
  width: 120%;
  background: linear-gradient(90deg, transparent, rgba(215, 196, 163, 0.16), transparent);
  animation: wash 22s linear infinite;
}
.bands i:first-child { top: 28%; }
.bands i:last-child { top: 62%; animation-duration: 31s; animation-direction: reverse; }
.mast {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.12);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foam);
  text-decoration: none;
  font-weight: 700;
}
.brand img { width: 32px; height: 32px; }
.mast nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.mast nav a { color: var(--foam); text-decoration: none; }
.log {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 28px;
  text-align: center;
}
.log p { margin: 0 0 0.9em; }
.plate {
  position: relative;
  overflow: hidden;
  width: min(300px, calc(100% - 36px));
  margin: 8px auto 28px;
  background: var(--deep);
}
.plate img { width: 100%; height: auto; }
.plate::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  background: linear-gradient(transparent, var(--water));
  animation: brim 5.5s ease-in-out infinite;
}
.entry {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 36px));
  margin: 0 auto 8px;
  padding: 16px 0;
  border-top: 1px solid rgba(215, 196, 163, 0.28);
  text-align: left;
}
.entry h2 { font-size: 1.35rem; }
.hook {
  display: inline-flex;
  margin-top: 6px;
  padding: 10px 14px;
  background: var(--sand);
  color: var(--deep);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  max-width: 100%;
  white-space: normal;
}
.col {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 36px));
  margin: 18px auto 36px;
  display: grid;
  gap: 10px;
}
.col a {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(215, 196, 163, 0.4);
  color: var(--foam);
  text-decoration: none;
  text-align: left;
}
.col a:hover { background: rgba(215, 196, 163, 0.08); }
.keel {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(244, 241, 234, 0.12);
  padding: 26px 0 18px;
}
.keel-in {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.keel a { color: var(--sand); }
.keel ul { list-style: none; margin: 0; padding: 0; }
.keel h2 { font-size: 1rem; }
.year { width: min(880px, calc(100% - 36px)); margin: 12px auto 0; color: rgba(244, 241, 234, 0.7); }
.vakta {
  position: fixed;
  z-index: 5;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: var(--foam);
  color: var(--deep);
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
}
.vakta p { margin: 0; max-width: 36rem; }
.vakta a { color: #0b4a52; }
.quiet {
  background: transparent;
  color: var(--deep);
  border: 1px solid var(--deep);
  padding: 10px 14px;
  font-family: "Nunito Sans", sans-serif;
  cursor: pointer;
}
@keyframes wash { from { transform: translateX(-8%); } to { transform: translateX(0); } }
@keyframes brim { 50% { opacity: 0.45; } }
@media (max-width: 800px) {
  .keel-in { grid-template-columns: 1fr; }
  .log { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

img[src^="images/"] {
  width: min(100%, 300px);
  height: auto;
  margin-left: auto;
  margin-right: auto;
}
