/* =========================================================
   MAISON RUINA — MASTER STYLE
   ========================================================= */


/* ---------- VARIABLES ---------- */

:root {
  --black: #0a0a0a;
  --paper: #e8e3d8;
  --grey: #77736c;
  --dark-grey: #292825;
  --red: #6f2027;

  --serif: Georgia, "Times New Roman", serif;
  --mono: "Courier New", Courier, monospace;

  --page-width: 1120px;
}


/* ---------- RESET ---------- */

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  background: var(--black);
}

body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--paper);

  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
}

::selection {
  background: var(--paper);
  color: var(--black);
}


/* ---------- GENERAL ---------- */

.site {
  width: min(var(--page-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 34px 0 80px;
}


/* ---------- LINKS ---------- */

a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--grey);

  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

a:hover {
  color: var(--red);
  border-color: var(--red);
}


/* ---------- HEADER ---------- */

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;

  margin-bottom: 110px;
  padding-bottom: 20px;

  border-bottom: 1px solid var(--dark-grey);
}

.logo {
  flex-shrink: 0;

  padding-top: 2px;

  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.logo a {
  border: none;
}

.logo a:hover {
  color: var(--red);
}


/* ---------- NAVIGATION ---------- */

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 20px;

  max-width: 780px;

  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.8;

  text-transform: uppercase;
  letter-spacing: 0.06em;
}

nav a {
  position: relative;

  border: none;
  color: var(--grey);

  transition: color 0.2s ease;
}

nav a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -4px;

  width: 0;
  height: 1px;

  background: var(--red);

  transition: width 0.2s ease;
}

nav a:hover {
  color: var(--paper);
}

nav a:hover::after {
  width: 100%;
}


/* ---------- TYPOGRAPHY ---------- */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: normal;
}

h1 {
  margin: 0 0 42px;

  font-size: clamp(64px, 11vw, 150px);
  line-height: 0.82;
  letter-spacing: -0.065em;
}

h2 {
  margin: 0 0 22px;

  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

h3 {
  margin: 0 0 12px;

  font-size: 21px;
  line-height: 1.1;
}

p {
  max-width: 680px;
  margin: 0 0 22px;
}


/* ---------- MONOSPACE INFORMATION ---------- */

.mono {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;

  color: var(--grey);

  letter-spacing: 0.02em;
}

.red {
  color: var(--red);
}


/* ---------- ENTRANCE ---------- */

.entrance {
  min-height: calc(100vh - 114px);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 40px 0 60px;
}

.entrance-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.entrance-title {
  margin: auto 0;
}

.entrance h1 {
  margin: 20px 0 42px;

  font-size: clamp(64px, 11vw, 150px);
  line-height: 0.82;
  letter-spacing: -0.065em;
}

.entrance-bottom {
  display: block;
}

.entrance-bottom p {
  max-width: 500px;

  margin: 30px 0 0;

  text-align: left;
}

.enter {
  display: inline-block;
  width: fit-content;

  padding: 7px 0;

  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;

  text-transform: uppercase;

  border-top: 1px solid var(--paper);
  border-bottom: 1px solid var(--paper);
}

.enter:hover {
  color: var(--paper);
  border-color: var(--red);
}


/* ---------- SECTIONS ---------- */

.section {
  margin: 0 0 150px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 18px;

  margin-bottom: 30px;

  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;

  color: var(--grey);

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-label::after {
  content: "";

  width: 70px;
  height: 1px;

  background: var(--dark-grey);
}


/* ---------- ROOM LIST ---------- */

.room-list {
  display: block;

  margin: 0;
  padding: 0;

  border: none;

  list-style: none;
}

.room-list li {
  margin: 0;
  padding: 0;

  border: none;

  list-style: none;
}

.room-list a {
  display: block;

  padding: 10px 0;

  border: none;

  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;

  letter-spacing: -0.025em;
}

.room-list a::before {
  content: "→ ";

  display: inline-block;

  width: 34px;

  color: var(--grey);

  font-family: var(--mono);
  font-size: 13px;

  vertical-align: middle;

  transition: color 0.2s ease;
}

.room-list a:hover {
  color: var(--red);
}

.room-list a:hover::before {
  color: var(--red);
}


/* ---------- ARCHIVE ITEMS ---------- */

.archive-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;

  padding: 22px 0;

  border-top: 1px solid var(--dark-grey);
}

.archive-item:last-child {
  border-bottom: 1px solid var(--dark-grey);
}

.archive-number {
  padding-top: 4px;

  font-family: var(--mono);
  font-size: 10px;

  color: var(--grey);
}

.archive-title {
  font-size: 23px;
  line-height: 1.15;
}


/* ---------- ARCHIVE META ---------- */

.archive-meta {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;

  color: var(--grey);

  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* ---------- SECTION INDEX ---------- */

.section-index {
  justify-content: flex-start;

  max-width: none;

  margin: 0 0 50px;
  padding: 0 0 18px;

  border-bottom: 1px solid var(--dark-grey);
}


/* ---------- MAP ---------- */

.map {
  margin: 0;

  border-top: 1px solid var(--dark-grey);
}

.map div {
  padding: 13px 0;

  border-bottom: 1px solid var(--dark-grey);

  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;

  color: var(--grey);
}


/* ---------- IMAGES ---------- */

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.archive-image {
  width: 100%;
  margin: 55px 0 35px;
}

.archive-image figcaption {
  margin: 0;
  padding-top: 10px;
}


/* ---------- GUESTBOOK ---------- */

.guestbook-frame {
  width: 100%;
  margin: 50px 0;
}

.guestbook-frame iframe {
  display: block;

  width: 100%;
  min-height: 800px;

  border: 1px solid var(--dark-grey);

  background: var(--black);
}


/* ---------- FOOTER ---------- */

footer {
  margin-top: 180px;
  padding-top: 18px;

  border-top: 1px solid var(--dark-grey);

  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.8;

  color: var(--grey);

  text-transform: uppercase;
  letter-spacing: 0.03em;
}


/* ---------- MOBILE ---------- */

@media (max-width: 700px) {

  .site {
    width: calc(100% - 32px);
    padding-top: 24px;
  }

  header {
    display: block;
    margin-bottom: 70px;
  }

  nav {
    justify-content: flex-start;
    margin-top: 22px;
    max-width: none;
  }

  h1 {
    font-size: clamp(54px, 18vw, 90px);
  }

  .entrance {
    min-height: calc(100vh - 80px);
    padding-top: 30px;
  }

  .entrance-top {
    display: block;
  }

  .entrance-top .mono:last-child {
    margin-top: 6px;
  }

  .entrance-bottom {
    display: block;
  }

  .entrance-bottom p {
    margin-top: 30px;
    text-align: left;
  }

  .section {
    margin-bottom: 100px;
  }

  .room-list a {
    padding: 10px 0;
  }

  .room-list a::before {
    width: 30px;
  }

  .archive-item {
    grid-template-columns: 50px 1fr;
    gap: 15px;
  }

  footer {
    margin-top: 120px;
  }
}