/* Vana Postimaja — preview site. Palette from the house: grey-blue boards, post-red trim, pine interiors, envelope paper. */
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/dmserif-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; }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/dmserif-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: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/dmserif-italic-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; }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/dmserif-italic-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: "Work Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/worksans-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; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/worksans-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; }

:root {
  --paper: #F6F1E7;
  --paper-2: #ECE4D4;
  --card: #FFFDF8;
  --ink: #1F2B33;
  --muted: #56626B;
  --board: #8FA3B1;      /* the grey-blue facade */
  --deep: #26394A;       /* dusk blue */
  --red: #A3302B;        /* window trim, post red */
  --red-dark: #84231F;
  --pine: #C68A4A;       /* pine walls */
  --line: #D9CFBC;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; color: var(--ink); }
h2 { font-size: clamp(34px, 4.2vw, 52px); }
h3 { font-size: 28px; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 13px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 60ch; }

/* Air-mail stripe */
.airmail { height: 8px; background: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--paper) 14px 22px, var(--deep) 22px 36px, var(--paper) 36px 44px); }

/* Header */
.site-header { background: var(--paper); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font: italic 400 26px/1 var(--serif); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--red); }
.lang { display: flex; gap: 4px; font-size: 14px; font-weight: 600; }
.lang a, .lang span { padding: 4px 8px; border-radius: 4px; text-decoration: none; }
.lang span { background: var(--deep); color: #fff; }
.lang a { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; border: 2px solid transparent; }
.btn svg { width: 18px; height: 18px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.bar .btn { padding: 10px 18px; font-size: 15px; }

/* Hero */
.hero { padding: 64px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(54px, 7vw, 96px); letter-spacing: -.01em; }
.hero h1 em { display: block; font-size: .42em; color: var(--muted); font-style: italic; letter-spacing: 0; margin-top: 12px; }
.hero .lead { margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; font-size: 15px; }
.facts li { display: flex; gap: 10px; align-items: baseline; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; transform: translateY(-1px); }
.hero-photo { position: relative; }

/* Stamp frame: white paper with perforated edge */
.stamp { position: relative; background: var(--card); padding: 12px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -22px rgba(31,43,51,.45);
  --hole: 7px;
  --dots: radial-gradient(circle var(--hole) at var(--hole) var(--hole), transparent 97%, #000) calc(-1 * var(--hole)) calc(-1 * var(--hole)) / 20px 20px round;
  -webkit-mask: var(--dots), linear-gradient(#000 0 0) content-box;
          mask: var(--dots), linear-gradient(#000 0 0) content-box; }
.stamp img { width: 100%; height: auto; }
.tilt-l { transform: rotate(-1.2deg); }
.tilt-r { transform: rotate(1deg); }
.postmark { position: absolute; width: 168px; height: 168px; left: -58px; bottom: -54px; color: var(--deep); opacity: .9; pointer-events: none; }
.postmark text { font: 600 11.5px var(--sans); letter-spacing: .14em; fill: currentColor; }

/* Sections */
section { padding: 96px 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.sec-head .lead { margin: 0; }

/* About */
.about { background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.about-text h2 { margin-bottom: 24px; }
.about-text blockquote { margin: 28px 0 0; padding-left: 22px; border-left: 3px solid var(--red); font: italic 22px/1.4 var(--serif); color: var(--deep); }

/* Rooms */
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.room { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 18px 18px 30px; }
.room .photos { display: grid; gap: 10px; margin-bottom: 26px; }
.room .photos img { width: 100%; height: auto; object-fit: cover; border-radius: 3px; }
.room-main .photos { grid-template-columns: 1.778fr 1.5fr; }
.room-main .photos img:nth-child(1) { aspect-ratio: 16/9; }
.room-main .photos img:nth-child(2) { aspect-ratio: 3/2; }
.room-yard .photos { grid-template-columns: 3.16fr 1fr; }
.room-yard .photos img:nth-child(1) { aspect-ratio: 16/9; }
.room-yard .photos img:nth-child(2) { aspect-ratio: 9/16; }
.room .tag { display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--deep); padding: 7px 10px; border-radius: 3px; margin-bottom: 14px; }
.room h3 { margin-bottom: 12px; }
.room .body { padding: 0 8px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { padding: 9px 0 9px 30px; border-top: 1px dashed var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }

/* Shared spaces (dark) */
.shared { background: var(--deep); color: #E9EEF2; }
.shared h2, .shared h3 { color: #fff; }
.shared .eyebrow { color: #F0B98A; }
.shared .lead { color: #C3CFD8; }
.shared-photos { display: grid; grid-template-columns: 2.4fr 1.333fr; gap: 16px; margin-bottom: 56px; }
.shared-photos figure { margin: 0; }
.shared-photos img { width: 100%; height: auto; object-fit: cover; border-radius: 4px; }
.shared-photos figure:nth-child(1) img { aspect-ratio: 12/5; }
.shared-photos figure:nth-child(2) img { aspect-ratio: 4/3; }
figcaption { font-size: 14px; color: inherit; opacity: .8; margin-top: 10px; }
.extras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.extras li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.16); }
.extras svg { width: 36px; height: 36px; color: #F0B98A; }
.extras strong { display: block; font: 400 22px/1.2 var(--serif); color: #fff; margin-bottom: 4px; }
.extras span { font-size: 15px; color: #C3CFD8; }

/* Gallery: justified rows, each tile as wide as its photo's share */
.gallery { display: grid; gap: 22px; }
.g-row { display: grid; gap: 22px; align-items: start; }
.g-row.r1 { grid-template-columns: 1.778fr 2.4fr; }
.g-row.r2 { grid-template-columns: 1fr; width: 82%; margin-inline: auto; }
.gallery .stamp { padding: 10px; }
.gallery img { width: 100%; height: auto; }

/* Reviews */
.reviews { background: var(--paper-2); }
.scores { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.score { display: flex; align-items: baseline; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 12px 22px; font-size: 15px; color: var(--muted); }
.score b { font: 400 28px/1 var(--serif); color: var(--ink); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 28px 26px 22px; position: relative; display: flex; flex-direction: column; }
.quote::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: repeating-linear-gradient(-45deg, var(--red) 0 10px, var(--card) 10px 16px, var(--deep) 16px 26px, var(--card) 26px 32px); border-radius: 4px 4px 0 0; }
.quote p { font: italic 20px/1.45 var(--serif); color: var(--ink); flex: 1; }
.quote footer { font-size: 14px; color: var(--muted); }
.quote footer b { color: var(--ink); font-weight: 600; }
.note { font-size: 14px; color: var(--muted); margin-top: 22px; }

/* Good to know + nearby */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.info-grid h3 { margin-bottom: 18px; }
.dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.dl dt, .dl dd { padding: 13px 0; border-top: 1px dashed var(--line); margin: 0; }
.dl dt { font-weight: 600; padding-right: 28px; }
.dl dd { color: var(--muted); }

/* Location */
.location { background: var(--paper-2); padding-bottom: 0; }
.loc-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: stretch; }
.address { font: 400 30px/1.25 var(--serif); margin: 18px 0 22px; }
.map { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: 6px 6px 0 0; display: block; background: #dfe6ea; }

/* Contact envelope */
.contact { background: var(--deep); padding: 96px 0; }
.envelope { background: var(--card); border-radius: 6px; padding: 10px; background-image: repeating-linear-gradient(-45deg, var(--red) 0 18px, var(--card) 18px 28px, var(--deep) 28px 46px, var(--card) 46px 56px); }
.envelope-inner { background: var(--card); border-radius: 3px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.envelope h2 { margin-bottom: 16px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { border-top: 1px dashed var(--line); padding: 16px 0; display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: baseline; }
.contact-list li:last-child { border-bottom: 1px dashed var(--line); }
.contact-list span { font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font: 400 24px/1.25 var(--serif); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--red); }
.contact-list small { display: block; font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { background: #1B2A37; color: #AFBCC6; font-size: 14px; padding: 28px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: #E9EEF2; }
.made { opacity: .8; }

/* Tablet */
@media (max-width: 1080px) {
  .nav { display: none; }
  .bar { gap: 16px; }
  .lang { margin-left: auto; }
  .hero-grid, .about-grid, .rooms, .info-grid, .loc-grid, .envelope-inner, .sec-head { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .extras { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .postmark { left: auto; right: -12px; bottom: -64px; width: 140px; height: 140px; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .bar { min-height: 62px; }
  .brand span { font-size: 22px; }
  .brand svg { width: 28px; height: 28px; }
  .bar .btn { display: none; }
  .hero { padding: 36px 0 76px; }
  .facts { grid-template-columns: 1fr; }
  .postmark { width: 104px; height: 104px; right: 6px; bottom: -40px; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  section { padding: 68px 0; }
  .stamp { padding: 8px; --hole: 5px; --dots: radial-gradient(circle var(--hole) at var(--hole) var(--hole), transparent 97%, #000) calc(-1 * var(--hole)) calc(-1 * var(--hole)) / 14px 14px round; }
  .room { padding: 12px 12px 22px; }
  .shared-photos { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr; }
  .g-row.r1, .g-row.r2 { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .envelope-inner { padding: 30px 22px; }
  .contact { padding: 64px 0; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .contact-list a { font-size: 22px; }
  .map { min-height: 320px; }
  .address { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
