/* Allee Apartments — preview site by Saarekiri.
   Colours from their own photos: the ochre wooden walls, the red-brown window trim, the terracotta roof,
   the white window frames and the green of the castle park. */

@font-face { font-family: "Besley"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/besley-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: "Besley"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/besley-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: "Besley"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(fonts/besley-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: "Besley"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(fonts/besley-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: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/instrument-sans-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: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/instrument-sans-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 {
  --ochre: #E4C878;      /* the wooden walls */
  --ochre-2: #D9B95F;    /* siding shadow line */
  --ochre-soft: #F4E7BF;
  --trim: #7A3A31;       /* red-brown window trim: buttons, accents */
  --trim-2: #5E2A23;
  --roof: #B55E3E;       /* terracotta roof tiles */
  --park: #2F4836;       /* castle park green: facts, location, map */
  --park-2: #3C5A43;
  --moss: #A9BC93;       /* text on park */
  --paper: #FBF7EC;      /* white window frames, warm */
  --white: #FFFDF8;
  --ink: #2A231E;
  --mute: #6A6056;
  --line: #E6DCC4;
  --wrap: 1200px;
  --serif: "Besley", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::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%; height: auto; }
a { color: var(--trim); text-underline-offset: 3px; }
a:hover { color: var(--trim-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--roof); outline-offset: 2px; }

.eyebrow { font: 600 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--trim); margin-bottom: 14px; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 4px; font: 600 16px/1 var(--sans); text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-trim { background: var(--trim); color: var(--white); }
.btn-trim:hover { background: var(--trim-2); color: var(--white); }
.btn-line { border-color: var(--trim); color: var(--trim); background: transparent; }
.btn-line:hover { background: var(--trim); color: var(--white); }

/* Header */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo img { width: 40px; height: 40px; }
.logo span { display: flex; flex-direction: column; line-height: 1.1; }
.logo b { font: 700 20px/1.1 var(--serif); }
.logo small { font-size: 13px; color: var(--mute); margin-top: 3px; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; }
.nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav ul a:hover { color: var(--trim); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.lang a { padding: 6px 10px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--mute); }
.lang a[aria-current] { background: var(--trim); color: var(--white); }

/* Hero: an intro on the ochre "siding", then the house as a full-width band */
.hero-intro {
  background:
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(122, 58, 49, .07) 34px 36px),
    var(--ochre);
  padding: 48px 0 44px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: end; }
.hero-intro .eyebrow { color: var(--trim-2); }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 700; margin: 0; color: var(--ink); }
.hero h1 span { display: block; font: italic 400 clamp(20px, 2.2vw, 28px)/1.3 var(--serif); margin-top: 12px; color: var(--trim-2); letter-spacing: 0; }
.hero .lead { font-size: 19px; line-height: 1.55; margin-bottom: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--trim-2); }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 7px; height: 7px; background: var(--trim); transform: rotate(45deg); }
.stars { color: var(--roof); letter-spacing: 1px; }
.hero-photo { border-top: 6px solid var(--trim); border-bottom: 6px solid var(--trim); background: var(--park); }
.hero-photo img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; }

/* Facts */
.facts { background: var(--park); color: var(--white); }
.facts dl { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts dl > div { padding: 26px 22px; border-left: 1px solid rgba(255, 255, 255, .12); }
.facts dl > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); margin-bottom: 6px; }
.facts dd { font: 600 24px/1.2 var(--serif); }
.facts small { display: block; font: 400 14px/1.4 var(--sans); color: var(--moss); margin-top: 4px; }

.section { padding: 96px 0; }

/* Apartments */
.apt-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.quote { font: italic 400 24px/1.4 var(--serif); color: var(--trim); border-left: 3px solid var(--ochre); padding-left: 20px; margin: 8px 0 22px; }
.rooms { display: grid; gap: 16px; }
.room { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; }
.room h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.room h3 small { font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--roof); }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.ticks li { background: var(--ochre-soft); border-radius: 30px; padding: 5px 14px; font-size: 15px; }
.room p { margin: 0; color: var(--mute); font-size: 16px; }
.room.whole { background: var(--trim); border-color: var(--trim); color: var(--white); }
.room.whole p { color: #F1DCD4; }
.room.whole h3 small { color: var(--ochre); }

.apt-photos { display: grid; grid-template-columns: 9fr 4fr 4fr; gap: 12px; margin-top: 56px; }
.apt-photos figure { margin: 0; }
.apt-photos img { width: 100%; height: auto; border-radius: 4px; }
.apt-photos figcaption, .cap { font-size: 14px; color: var(--mute); margin-top: 8px; }

/* Location */
.place { background: var(--park); color: var(--white); padding-bottom: 0; }
.place h2 { color: var(--white); }
.place .eyebrow { color: var(--ochre); }
.place-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 40px; }
.place-head p { color: #DCE4D6; font-size: 18px; margin: 0; }
.aerial { margin: 0; }
.aerial img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; }
.aerial figcaption { padding: 10px 0 0; font-size: 14px; color: var(--moss); }
.place-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; padding: 56px 0 96px; }
.near { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 8px; }
.near li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.near li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border: 2px solid var(--ochre); transform: rotate(45deg); }
.near b { display: block; font-family: var(--serif); font-weight: 600; font-size: 19px; }
.near span { color: #C9D4C3; font-size: 15px; }
.window { margin: 0; justify-self: center; width: min(100%, 300px); }
.window img { width: 100%; border: 8px solid var(--white); }
.window figcaption { color: var(--moss); font-size: 14px; margin-top: 8px; }
.dist { font: 600 64px/1 var(--serif); color: var(--ochre); margin: 0 0 6px; }
.dist small { font: 400 18px/1 var(--sans); color: #DCE4D6; margin-left: 6px; }

/* Gallery: justified rows, each tile at its photo's own ratio */
.gallery { display: flex; flex-direction: column; gap: 12px; }
.g-row { display: flex; gap: 12px; }
.g-row li { flex: var(--r) 1 0; min-width: 0; }
.g-row img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; border-radius: 4px; }
.credit { font-size: 14px; color: var(--mute); margin-top: 16px; }

/* Visit: hours, rating, address, map */
.visit { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.cards { display: grid; gap: 14px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 20px 22px; }
.card dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--roof); font-weight: 600; margin-bottom: 4px; }
.card dd { font: 600 20px/1.35 var(--serif); }
.card dd small { display: block; font: 400 15px/1.45 var(--sans); color: var(--mute); margin-top: 2px; }
.score { display: flex; align-items: center; gap: 14px; }
.score b { font: 700 40px/1 var(--serif); color: var(--trim); }
.map { position: relative; border-radius: 6px; overflow: hidden; background: var(--park); aspect-ratio: 16 / 10; }
.map svg, .map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.map-bar button, .map-bar a { font: 600 14px/1 var(--sans); padding: 10px 14px; border-radius: 4px; border: 0; cursor: pointer; text-decoration: none; background: var(--white); color: var(--ink); }
.map-bar button { background: var(--trim); color: var(--white); }
.addr { font-size: 15px; color: var(--mute); margin-top: 10px; }

/* Contact band */
.contact { background: var(--trim); color: var(--white); padding: 72px 0; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.contact h2 { color: var(--white); margin-bottom: 8px; }
.contact .sub { color: #F1DCD4; margin: 0; font-size: 18px; }
.clist { display: grid; gap: 12px; }
.clist a { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 6px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: var(--white); text-decoration: none; }
.clist a:hover { background: rgba(255, 255, 255, .16); color: var(--white); }
.clist svg { width: 26px; height: 26px; flex: none; color: var(--ochre); }
.clist span { display: flex; flex-direction: column; min-width: 0; }
.clist small { font-size: 13px; color: #F1DCD4; letter-spacing: .08em; text-transform: uppercase; }
.clist b { font: 600 21px/1.3 var(--serif); overflow-wrap: anywhere; }

.footer { background: var(--trim-2); color: #E9CFC6; font-size: 14px; padding: 22px 0; }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { color: #F6E5DE; }

/* Tablet */
@media (max-width: 1023px) {
  .nav ul { display: none; }
  .hero-grid, .apt-grid, .place-head, .visit, .contact .wrap { grid-template-columns: 1fr; gap: 28px; }
  .place-grid { grid-template-columns: 1fr 260px; gap: 32px; }
  .facts dl { grid-template-columns: repeat(2, 1fr); }
  .facts dl > div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .facts dl > div:nth-child(-n+2) { border-top: 0; }
  .section { padding: 72px 0; }
}

/* Phone */
@media (max-width: 759px) {
  body { font-size: 16px; }
  .nav { min-height: 62px; }
  .logo img { width: 34px; height: 34px; }
  .logo b { font-size: 18px; }
  .logo small { font-size: 12px; }
  .hero-intro { padding: 30px 0 28px; }
  .hero .lead { font-size: 17px; }
  .hero-photo img { aspect-ratio: 3 / 2; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .facts dd { font-size: 20px; }
  .facts dl > div { padding: 18px 12px 18px 0; }
  .section { padding: 56px 0; }
  .quote { font-size: 20px; }
  .apt-photos { grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .apt-photos figure:first-child { grid-column: 1 / -1; }
  .place-grid { grid-template-columns: 1fr; padding: 40px 0 56px; }
  .near { grid-template-columns: 1fr; }
  .window { width: min(100%, 240px); }
  .dist { font-size: 52px; }
  .g-row { flex-wrap: wrap; }
  .g-row li { flex-basis: 100%; }
  .g-row li.half { flex-basis: calc(50% - 6px); }
  .g-row li.narrow { max-width: 300px; margin-inline: auto; }
  .map { aspect-ratio: 4 / 3; }
  .contact { padding: 56px 0; }
  .clist b { font-size: 18px; }
}
