/* Furnace Lough House: after.
   One wall, five windows. Whitewash page, Sill band, Slate text, Lough for the quiet bits,
   Fuchsia only for the buttons and the "free" dot. Hedvig Letters, one weight: hierarchy is
   size, colour and space. Mobile is composed first and widened, not the other way round. */

@font-face {
  font-family: "Hedvig Letters Serif";
  src: url("/assets/redesigns/furnace-lough-house/fonts/hedvig-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hedvig Letters Sans";
  src: url("/assets/redesigns/furnace-lough-house/fonts/hedvig-sans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --wash: #f1f2ee;
  --sill: #e2e0d7;
  --slate: #1f2a30;
  --lough: #4e6470;
  --fuchsia: #a1124f;
  --fuchsia-deep: #86103f;
  --hair: rgba(78, 100, 112, 0.3);
  --serif: "Hedvig Letters Serif", Georgia, "Times New Roman", serif;
  --sans: "Hedvig Letters Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --wrap: 1280px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: var(--wash);
  color: var(--slate);
  font: 400 17px/1.55 var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  overflow-x: clip;
}

main,
header.top,
footer.foot {
  box-sizing: border-box;
}

main {
  --win-ratio: 768 / 1016;
  --row-gap: 0px;
  --hero-desk: clamp(400px, 33vw, 480px);
  --hero-ratio: 768 / 1016;
  --hero-m-w: 100%;
  --hero-m-ratio: 4 / 4.4;
  --room-m-w: 78vw;
  --sill-k: 0.077;
  --top-k: 0.11;
}

main *,
header.top *,
footer.foot * {
  box-sizing: border-box;
}

main h1,
main h2,
main h3,
main p,
main ul,
main dl,
main dd,
main figure,
footer.foot p {
  margin: 0;
  font-weight: 400;
}

main ul {
  padding: 0;
  list-style: none;
}

main p,
main dd {
  text-wrap: pretty;
}

main img {
  display: block;
  max-width: 100%;
}

main a,
footer.foot a,
header.top a {
  color: var(--lough);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

main a:hover,
footer.foot a:hover,
header.top a:hover {
  color: var(--slate);
}

main :focus-visible,
footer.foot :focus-visible,
header.top :focus-visible {
  outline: 2px solid var(--fuchsia);
  outline-offset: 3px;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.only-wide {
  display: none;
}

/* One grid: header, hero, rooms, breakfast, getting here, ask and footer share this
   container and its left edge. Narrow columns inside it start on that edge. */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Buttons: the one place Fuchsia fills a shape. */
.btn,
main a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 2px;
  background: var(--fuchsia);
  color: #fff;
  font: 400 17px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
}

.btn:hover,
main a.btn:hover,
header.top a.btn:hover {
  background: var(--fuchsia-deep);
  color: #fff;
}

.btn--small,
header.top a.btn--small {
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
}

/* ---------- Header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--wrap);
  min-height: 60px;
  margin-inline: auto;
  padding: 0 var(--gutter);
}

.top__name,
header.top a.top__name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--slate);
  font: 400 21px/1.2 var(--serif);
  text-decoration: none;
}

.top__nav {
  display: none;
}

.top__book,
header.top a.top__book {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-left: 12px;
  color: var(--slate);
  font-size: 17px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* ---------- Hero (mobile first) ---------- */

.hero {
  display: grid;
  grid-template-columns: [full-start] var(--gutter) [wrap-start] minmax(0, 1fr) [wrap-end] var(--gutter) [full-end];
}

.hero > * {
  grid-column: wrap-start / wrap-end;
}

.hero__place {
  order: 1;
  margin: 10px 0 6px;
  color: var(--lough);
  font-size: 15px;
  line-height: 1.3;
}

.hero__title {
  order: 2;
  margin: 0 0 16px;
  font: 400 34px/1.1 var(--serif);
  text-wrap: balance;
}

.hero__media {
  order: 3;
  justify-self: center;
  width: var(--hero-m-w);
}

.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--hero-m-ratio);
  object-fit: cover;
  object-position: 50% 100%;
}

.sill {
  order: 4;
  grid-column: full-start / full-end;
  height: 14px;
  background: var(--sill);
  border-bottom: 1px solid rgba(31, 42, 48, 0.16);
}

.hero__tonight {
  order: 5;
  margin-top: 14px;
}

.hero__lede {
  order: 6;
  max-width: 34ch;
  margin-top: 22px;
  color: var(--lough);
}

.tonight p {
  margin: 0;
}

.tonight__static {
  margin-bottom: 12px;
}

.tonight__live[hidden] {
  display: none;
}

.tonight__long {
  display: none;
}

.tonight__short {
  margin-bottom: 12px;
  font: 400 21px/1.25 var(--serif);
}

.tonight .btn {
  width: 100%;
}

.tonight__call {
  margin-top: 4px;
}

.tonight__call a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

/* ---------- Rooms ---------- */

.rooms {
  padding-top: 64px;
  overflow-x: clip;
}

.rooms__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

main h2 {
  font: 400 30px/1.1 var(--serif);
}

.when[hidden] {
  display: none;
}

.when__sentence {
  font: 400 26px/1.45 var(--serif);
}

.when__sentence label {
  color: var(--slate);
}

.when__for {
  margin-left: 0.15em;
}

.when__tail {
  white-space: nowrap;
}

.pick {
  position: relative;
  display: inline-block;
  margin-inline: 0.12em;
}

.pick select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 0 1.15em 0.05em 0.1em;
  border: 0;
  border-bottom: 1.5px solid var(--lough);
  border-radius: 0;
  background: transparent;
  color: var(--slate);
  font: inherit;
  cursor: pointer;
}

.pick::after {
  content: "";
  position: absolute;
  right: 0.2em;
  top: 50%;
  width: 0.28em;
  height: 0.28em;
  border-right: 1.5px solid var(--lough);
  border-bottom: 1.5px solid var(--lough);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}

.pick:focus-within::after {
  border-color: var(--fuchsia);
}

.when__count {
  min-height: 1.5em;
  margin-top: 2px;
  color: var(--lough);
  font-size: 15px;
}

.windows {
  margin-top: 26px;
}

.windows__row {
  --gap: var(--row-gap);
  display: flex;
  gap: var(--gap);
  padding: 0 var(--gutter) 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--hair) transparent;
  overscroll-behavior-x: contain;
}

.room {
  position: relative;
  display: flex;
  flex: 0 0 var(--room-m-w);
  max-width: 360px;
  flex-direction: column;
  scroll-snap-align: start;
}

/* The sill: one continuous band under the row. Each window lays its own length of it. */
.room__window {
  position: relative;
  margin-bottom: 14px;
}

.room__window::after {
  content: "";
  position: absolute;
  left: calc(var(--gap) / -2);
  right: calc(var(--gap) / -2);
  top: 100%;
  height: 14px;
  background: var(--sill);
  border-bottom: 1px solid rgba(31, 42, 48, 0.16);
}

.room:first-child .room__window::after {
  left: calc(var(--gutter) * -1);
}

.room:last-child .room__window::after {
  right: calc(var(--gutter) * -1);
}

.room__window img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--win-ratio);
}

.room[data-state="taken"] .room__window img {
  opacity: 0.5;
}

.room__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 0 0;
}

.room__name {
  font: 400 24px/1.15 var(--serif);
}

.room__sleeps {
  display: block;
  margin-top: 5px;
  color: var(--lough);
  font: 400 14px/1 var(--sans);
}

.room__line {
  margin-top: 8px;
  color: var(--lough);
  font-size: 16px;
  line-height: 1.5;
}

.room__buy {
  margin-top: auto;
  padding-top: 18px;
}

.room__rate {
  font: 400 22px/1.2 var(--serif);
}

.room__rate:not(.is-live) {
  font: 400 16px/1.4 var(--sans);
}

.room__total {
  margin-top: 2px;
  color: var(--lough);
  font-size: 15px;
}

.room__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 16px;
}

.room__status[hidden],
.room__total[hidden] {
  display: none;
}

.room[data-state="free"] .room__status::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fuchsia);
}

.room[data-state="taken"] .room__status {
  color: var(--lough);
}

.room__ask {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
}

/* A taken room keeps the row's height; the link just is not there. */
.room[data-state="taken"] .room__ask {
  visibility: hidden;
}

.windows__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-height: 2px;
  margin-top: 14px;
}

.windows__dots span {
  width: 18px;
  height: 2px;
  background: var(--hair);
}

.windows__dots span[aria-current="true"] {
  background: var(--slate);
}

.rooms__note {
  margin-top: 30px;
  color: var(--lough);
  font-size: 15px;
}

/* ---------- Breakfast ---------- */

.breakfast {
  padding-top: 88px;
}

.breakfast__photo {
  max-width: 880px;
  margin: 22px calc(var(--gutter) * -1) 0;
}

.breakfast__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.breakfast__text {
  max-width: 34rem;
  margin-top: 22px;
}

.breakfast__text p + p {
  margin-top: 14px;
  color: var(--lough);
}

/* ---------- Getting here ---------- */

.here {
  padding-top: 88px;
}

.here__list {
  max-width: 880px;
  margin-top: 22px;
}

.here__list > div {
  padding: 0 0 26px;
}

.here__list dt {
  margin-bottom: 4px;
  font: 400 20px/1.2 var(--serif);
}

.here__list dd {
  max-width: 36ch;
}

/* ---------- Ask ---------- */

.ask {
  margin-top: 96px;
  padding: 56px 0 64px;
  background: var(--sill);
}

.ask__line {
  max-width: 34ch;
  margin-top: 10px;
}

.ask__form {
  display: grid;
  max-width: 880px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 14px;
  margin-top: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.field--room,
.field--name,
.field--email,
.field--note,
.ask__send {
  grid-column: 1 / -1;
}

.field label {
  color: var(--lough);
  font-size: 15px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1.5px solid var(--lough);
  border-radius: 0;
  background: var(--wash);
  color: var(--slate);
  font: 400 17px/1.4 var(--sans);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
}

.field--room,
.field--nights {
  position: relative;
}

.field--room::after,
.field--nights::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 22px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--lough);
  border-bottom: 1.5px solid var(--lough);
  transform: rotate(45deg);
  pointer-events: none;
}

.field textarea {
  resize: vertical;
}

.field :focus-visible {
  outline-offset: 2px;
}

.ask__send {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ask__send .btn {
  width: 100%;
}

.ask__status {
  min-height: 1.55em;
  color: var(--slate);
}

.ask__reply {
  margin-top: 8px;
  color: var(--lough);
}

.ask a {
  color: var(--slate);
}

/* ---------- Footer ---------- */

.foot {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 26px var(--gutter) 34px;
  color: var(--lough);
  font-size: 14px;
  line-height: 1.7;
}

.foot a,
.ask__reply a,
.here dd a {
  padding-block: 14px;
}

/* ---------- 640+ ---------- */

@media (min-width: 640px) {
  :root {
    --gutter: 28px;
  }

  .breakfast__photo {
    margin-inline: 0;
  }

  .room {
    flex-basis: 36vw;
    max-width: 330px;
  }

  .here__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 40px;
  }

  .ask__form {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px 18px;
  }

  .field--room {
    grid-column: span 3;
  }

  .field--date {
    grid-column: span 2;
  }

  .field--nights {
    grid-column: span 1;
  }

  .field--name,
  .field--email {
    grid-column: span 3;
  }

  .field--note {
    grid-column: 1 / -1;
  }

  .ask__send {
    flex-direction: row;
    align-items: center;
    gap: 22px;
  }

  .ask__send .btn {
    width: auto;
  }
}

/* Tablet: keep the stacked hero to a window-sized column instead of stretching it. */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero__place,
  .hero__title,
  .hero__tonight,
  .hero__lede {
    max-width: 480px;
  }

  .hero__media {
    max-width: 480px;
    justify-self: start;
  }

  .hero__title {
    font-size: 40px;
  }
}

/* ---------- 1024+: the wall ---------- */

@media (min-width: 1024px) {
  :root {
    --gutter: 40px;
  }

  body {
    font-size: 18px;
  }

  .only-wide {
    display: inline;
  }

  .only-narrow {
    display: none;
  }

  .top {
    min-height: 76px;
    padding-top: 8px;
  }

  .top__name,
  header.top a.top__name {
    font-size: 24px;
  }

  .top__nav {
    display: flex;
    align-items: center;
    gap: 34px;
  }

  .top__nav a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--slate);
    text-decoration: none;
  }

  .top__nav a:not(.btn):hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
  }

  .top__book,
  header.top a.top__book {
    display: none;
  }

  .hero {
    --side: calc((min(100vw, var(--wrap)) - 2 * var(--gutter) - var(--hero-desk)) / 2);
    grid-template-columns:
      [full-start] minmax(var(--gutter), 1fr)
      [wrap-start] minmax(0, var(--side))
      [media-start] var(--hero-desk)
      [media-end] minmax(0, var(--side))
      [wrap-end] minmax(var(--gutter), 1fr)
      [full-end];
    grid-template-rows: auto auto auto 1fr auto;
    column-gap: 0;
    margin-top: 6px;
  }

  .hero__place,
  .hero__title,
  .hero__lede {
    grid-column: wrap-start / media-start;
    order: 0;
    padding-right: 32px;
  }

  .hero__place {
    grid-row: 1;
    margin-top: calc(var(--hero-desk) * var(--top-k));
    margin-bottom: 14px;
    font-size: 16px;
  }

  .hero__title {
    grid-row: 2;
    margin-bottom: 20px;
    font-size: clamp(36px, 3.1vw, 46px);
    line-height: 1.06;
  }

  .hero__lede {
    grid-row: 3;
    margin-top: 0;
    max-width: 30ch;
    font-size: 18px;
  }

  .hero__media {
    grid-column: media-start / media-end;
    grid-row: 1 / 5;
    order: 0;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .hero__media img {
    aspect-ratio: var(--hero-ratio);
    object-position: 50% 50%;
  }

  .hero__tonight {
    grid-column: media-end / wrap-end;
    grid-row: 1 / 5;
    order: 0;
    align-self: end;
    margin: 0;
    max-width: none;
    padding-bottom: calc(var(--hero-desk) * var(--sill-k));
    padding-left: 32px;
  }

  .sill {
    grid-row: 5;
    order: 0;
  }

  .tonight__static {
    max-width: 22ch;
    margin-bottom: 18px;
    font: 400 24px/1.25 var(--serif);
  }

  .tonight__long {
    display: block;
    margin-bottom: 20px;
  }

  .tonight__short {
    display: none;
  }

  .tonight__day {
    color: var(--lough);
    font-size: 16px;
  }

  .tonight__free {
    margin: 4px 0 6px;
    font: 400 28px/1.2 var(--serif);
  }

  .tonight__from {
    font-size: 17px;
  }

  .tonight .btn {
    width: auto;
  }

  .tonight__call {
    margin-top: 12px;
    color: var(--lough);
  }

  .tonight__call a {
    display: inline;
    min-height: 0;
    padding-block: 12px;
  }

  .tonight__call a > span {
    display: inline;
  }

  .rooms {
    padding-top: 112px;
  }

  .rooms__head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 40px;
  }

  main h2 {
    font-size: 44px;
  }

  .when {
    text-align: right;
  }

  .when__sentence {
    font-size: 30px;
  }

  .breakfast {
    padding-top: 128px;
  }

  .breakfast__photo {
    margin: 28px 0 0;
  }

  .breakfast__text {
    margin-top: 28px;
  }

  .here {
    padding-top: 128px;
  }

  .here__list {
    margin-top: 28px;
  }

  .ask {
    margin-top: 128px;
    padding: 80px 0 88px;
  }
}

/* 1100+: five windows in one row, on one long sill. Below this they scroll. */
@media (min-width: 1100px) {
  .windows {
    max-width: var(--wrap);
    margin: 36px auto 0;
  }

  .windows__row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0 var(--gutter);
    overflow: visible;
    scroll-snap-type: none;
  }

  .room {
    flex: none;
    max-width: none;
  }

  .room:first-child .room__window::after {
    left: -100vw;
  }

  .room:last-child .room__window::after {
    right: -100vw;
  }

  .room__body {
    padding: 22px 16px 0 0;
  }

  .windows__dots {
    display: none;
  }
}

/* 1100+: the lower half uses the full width — breakfast beside its photo, getting here in three columns, the form beside its intro. */
@media (min-width: 1100px) {
  .breakfast {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto 1fr;
    column-gap: 64px;
  }

  .breakfast__photo {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
  }

  .breakfast h2 {
    grid-column: 2;
    align-self: end;
  }

  .breakfast__text {
    grid-column: 2;
    align-self: start;
  }

  .here__list {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ask .wrap {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 64px;
  }

  .ask h2,
  .ask__line,
  .ask__reply {
    grid-column: 1;
  }

  .ask__reply {
    align-self: end;
  }

  .ask__form {
    grid-column: 2;
    grid-row: 1 / 4;
    margin-top: 0;
    max-width: none;
  }
}

.ask__reply a { white-space: nowrap; }
