:root {
  --ink: #241c16;
  --muted: #6d5848;
  --link: #6b341f;
  --yellow: #e0be58;
  --wood: #3c2e26;
  --wood-deep: #2c221c;
  --cream: #f6f1e6;
  --paper: #fffaf2;
  --line: #e3d5c4;
  --stoop: #d4c8b8;
  --stone: #c4b6a4;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(#c5d3dc 0%, #dce4e7 38%, #e4e0d6 70%, #d7e0da 100%);
}

html:not([lang="ru"]) .ru { display: none; }
html[lang="ru"] .et { display: none; }

::selection { background: #f0d7a4; color: #241910; }

a { color: var(--link); text-underline-offset: 0.16em; }
a:visited { color: var(--link); }
a:hover { color: #3e2418; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid #8c3d22;
  outline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 30;
  background: #fff;
  color: var(--ink);
  padding: 0.4rem 0.7rem;
}

.skip:focus { top: 12px; }

.sky {
  padding: 28px 16px 0;
}

.house {
  width: min(880px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 16px 22px rgba(48, 58, 66, 0.13));
}

.front {
  --roof-h: 156px;
  position: relative;
}

.roof {
  position: relative;
  height: var(--roof-h);
  z-index: 1;
}

.tin {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  bottom: 14px;
  background-color: #6d5648;
  background-image:
    repeating-linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.045) 0 1px,
      transparent 1px 18px
    ),
    linear-gradient(#8d7364, #5a433a 72%, #4a382f);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.roof::after {
  content: "";
  position: absolute;
  left: -1.5%;
  right: -1.5%;
  bottom: 0;
  height: 13px;
  background: linear-gradient(#4d3b32, #3a2c26);
  border-radius: 1px;
  z-index: 2;
}

.roof-snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.chimney {
  position: absolute;
  z-index: 3;
  left: 61%;
  bottom: 36%;
  width: 46px;
  height: 74px;
  background:
    repeating-linear-gradient(
      90deg,
      #7a4638 0 9px,
      #6e3e32 9px 11px,
      #855140 11px 20px
    );
  border-radius: 1px;
  transform: rotate(0.4deg);
}

.chimney .cap {
  position: absolute;
  left: -7px;
  right: -7px;
  top: 0;
  height: 9px;
  background: #4e3a32;
  border-radius: 1px;
}

.smoke,
.smoke::before,
.smoke::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 100%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(236, 241, 244, 0.75);
  animation: toss 4.8s linear infinite;
}

.smoke::before { animation-delay: 1.6s; margin-left: 6px; }
.smoke::after { animation-delay: 3.1s; margin-left: -4px; }

@keyframes toss {
  0% { transform: translateY(4px) scale(0.5); opacity: 0; }
  18% { opacity: 0.55; }
  100% { transform: translateY(-42px) scale(1.55); opacity: 0; }
}

.sign {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: calc(var(--roof-h) - 46px);
  transform: translateX(-50%);
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  background: #f4efe4;
  border: 2px solid var(--wood-deep);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.03em;
  padding: 0.42rem 1.25rem 0.48rem;
  box-shadow: 0 7px 0 rgba(44, 36, 28, 0.06);
}

.sign::before,
.sign::after {
  content: "";
  position: absolute;
  top: -16px;
  width: 1px;
  height: 16px;
  background: var(--wood-deep);
}

.sign::before { left: 16px; }
.sign::after { right: 16px; }

.sign:hover { background: #fbf7ef; }

.facade {
  position: relative;
  z-index: 4;
  background-color: var(--yellow);
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255, 248, 230, 0.28) 0 1px,
    rgba(120, 78, 24, 0.045) 1px 13px
  );
  border-left: 10px solid var(--wood);
  border-right: 10px solid var(--wood);
  padding: 52px 22px 16px;
}

.facade-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a3418;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

nav a {
  text-decoration: none;
  color: var(--wood-deep);
  padding: 0.28rem 0.5rem;
  border-radius: 2px;
}

nav a:hover { background: rgba(255, 250, 240, 0.5); }

nav a[aria-current="page"] {
  background: rgba(255, 250, 240, 0.78);
  box-shadow: inset 0 -2px 0 var(--link);
}

.keel {
  display: flex;
  gap: 0.15rem;
  margin-top: 0.55rem;
}

.keel button {
  min-width: 2.4rem;
  min-height: 2rem;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.keel button[aria-pressed="true"] {
  background: var(--wood-deep);
  color: #f3eadb;
}

.little-window {
  width: 96px;
  height: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  background: #172024;
  border: 7px solid #f3efe6;
  box-shadow:
    inset 0 0 0 2px var(--wood),
    0 0 16px rgba(255, 190, 110, 0.28);
  position: relative;
}

.little-window i {
  border: 1px solid rgba(243, 239, 230, 0.28);
  background:
    radial-gradient(circle at 38% 36%, #ffe1b0, #e39a45 46%, #8a4e22 78%, #1a2428);
  animation: glow 7.5s ease-in-out infinite;
}

.little-window i:nth-child(2) { animation-delay: 0.8s; }
.little-window i:nth-child(3) { animation-delay: 1.4s; }
.little-window i:nth-child(4) { animation-delay: 0.3s; }

@keyframes glow {
  50% { filter: brightness(1.12); }
}

.sill {
  position: absolute;
  left: -9px;
  right: -9px;
  bottom: -11px;
  height: 8px;
  background: linear-gradient(#f7f4ee, #e4ddd2);
  box-shadow: 0 1px 0 rgba(44, 36, 28, 0.35);
}

.plaque {
  justify-self: start;
  position: relative;
  width: max-content;
  margin: 0.7rem 0 0;
  background: #f7f4ee;
  border: 1.5px solid var(--wood-deep);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1;
  padding: 0.15rem 0.42rem 0.2rem;
  transform: rotate(-1deg);
}

.shopfront { position: relative; z-index: 4; }

.lintel {
  position: relative;
  height: 14px;
  background: linear-gradient(#5a463c, var(--wood));
}

.window {
  background: var(--wood);
  padding: 0 12px 12px;
  border-left: 0;
  border-right: 0;
}

.room {
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.45), transparent 90px),
    var(--cream);
  padding: 1.7rem 1.7rem 2rem;
  min-height: 240px;
}

h1, h2, .note-list strong {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 0.7rem;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.12;
  margin: 0 0 0.45rem;
}

.kicker {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose p { margin: 0 0 0.85em; }
.prose p:last-child { margin-bottom: 0; }
.prose { max-width: 40rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(200px, 0.72fr);
  gap: 1.5rem 1.8rem;
  align-items: start;
}

.slip {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.95rem 1rem 1.1rem;
  box-shadow: 3px 4px 0 rgba(70, 48, 24, 0.04);
  transform: rotate(-0.35deg);
}

.slip h2 { font-size: 1.5rem; }
.slip p { margin: 0.3rem 0; }
.slip .fine { color: var(--muted); font-size: 0.98rem; }

.kindel {
  margin: 0.2rem 0 0;
  padding-left: 1.15rem;
}

.kindel li { margin: 0.15rem 0; }

.hinnad {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 1.1rem;
  max-width: 38rem;
}

.hinnad li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.42rem 0;
}

.hinnad .dots {
  flex: 1;
  border-bottom: 1px dotted #cbb89f;
  transform: translateY(-0.28em);
  min-width: 1.2rem;
}

.hinnad b {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hinnad .name { min-width: 0; }
.hinnad small {
  margin-left: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.hinnad small::before { content: "· "; }

.tunnid {
  width: 100%;
  max-width: 28rem;
  border-collapse: collapse;
  margin: 0.3rem 0 1rem;
}

.tunnid th,
.tunnid td {
  text-align: left;
  font-weight: 400;
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}

.tunnid th { font-weight: 600; padding-right: 1rem; }
.tunnid td { text-align: right; white-space: nowrap; }

.tee {
  margin: 0.2rem 0 1rem;
  padding-left: 1.2rem;
  max-width: 40rem;
}

.tee li { margin: 0.35rem 0; }

.note-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  max-width: 40rem;
}

.note-list a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.note-list time {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.12rem;
}

.note-list strong {
  display: block;
  font-size: 1.85rem;
  line-height: 1.05;
  color: var(--ink);
}

.note-list a:hover strong { color: var(--link); }

.dated {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.back {
  margin: 1.3rem 0 0;
}

.stoop {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 8px 18px;
  background:
    linear-gradient(180deg, #c9baa8, var(--stoop) 28%);
  padding: 16px 22px 18px;
  border-left: 10px solid #6d6256;
  border-right: 10px solid #6d6256;
}

.bench { align-self: end; width: 108px; }

.bench .backrest {
  display: block;
  height: 22px;
  width: 86%;
  margin-left: 7%;
  background: #5c4030;
  border-radius: 3px 3px 0 0;
}

.bench::after {
  content: "";
  display: block;
  height: 8px;
  background:
    linear-gradient(#5c4030, #5c4030) left bottom / 8px 8px no-repeat,
    linear-gradient(#5c4030, #5c4030) right bottom / 8px 8px no-repeat;
}

.seat {
  display: block;
  position: relative;
  height: 12px;
  background: #6d4e36;
  border-radius: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.steps {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.steps span {
  display: block;
  position: relative;
  height: 18px;
  background: linear-gradient(#d7c7b4, #b5a48f);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 0 rgba(80, 62, 46, 0.18);
  border-radius: 1px;
}

.steps span:nth-child(1) { width: 72%; }
.steps span:nth-child(2) { width: 86%; }
.steps span:nth-child(3) { width: 100%; }

.stamp {
  align-self: end;
  font-size: 0.98rem;
}

.stamp p { margin: 0 0 0.35rem; }
.stamp a { color: var(--ink); }

.pavement {
  position: relative;
  height: 48px;
  margin: 0 -16px;
  background:
    radial-gradient(120px 20px at 18% 0, rgba(255, 255, 255, 0.8), transparent 70%),
    radial-gradient(180px 24px at 70% 10%, rgba(255, 255, 255, 0.65), transparent 70%),
    linear-gradient(#e7eef2, #f5f8f8 45%, #e3ebe6);
}

.snowcap {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
  z-index: 4;
}

.snow-sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
}

@media (max-width: 720px) {
  .front { --roof-h: 118px; }
  .sign {
    font-size: 2.55rem;
    padding: 0.32rem 0.75rem 0.36rem;
  }
  .facade { padding: 46px 14px 14px; }
  .facade-grid {
    grid-template-columns: 1fr;
    padding-right: 78px;
  }
  .little-window {
    position: absolute;
    top: 14px;
    right: 12px;
    width: 64px;
    height: 46px;
  }
  .room { padding: 1.25rem 1rem 1.5rem; }
  .split { grid-template-columns: 1fr; }
  .slip { transform: none; }
  .stoop {
    grid-template-columns: 92px 1fr;
    padding: 14px 14px 16px;
  }
  .chimney { height: 58px; width: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .smoke, .smoke::before, .smoke::after,
  .little-window i { animation: none; }
  .smoke { opacity: 0.35; }
}

@media print {
  body { background: #fff; }
  .snow-sky, .roof-snow, .snowcap, .smoke { display: none !important; }
  .house { filter: none; }
}
