/* Roomlinked LLC company site */

:root {
  --bg: #f7f4ef;
  --ink: #1c1916;
  --muted: #5c564d;
  --line: #ddd6cb;
  --focus: #1c1916;
  --space: 1.5rem;
  --wrap: 68rem;
  --measure: 40rem;
  --header-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--ink);
}

a:focus-visible,
.wordmark:focus-visible,
.nav a:focus-visible,
.footer-nav a:focus-visible,
.email:focus-visible,
.btn:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: #e8e2d8;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
  padding-block: 0.5rem;
}

.wordmark {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.wordmark:hover {
  text-decoration: none;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 1rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-underline-offset: 0.18em;
}

main {
  flex: 1 0 auto;
}

.page {
  width: min(var(--wrap), calc(100% - 3rem));
  margin-inline: auto;
  padding: 4.5rem 0 5rem;
}

.page > * {
  max-width: var(--measure);
}

.page-home,
.page-contact {
  padding-top: clamp(3rem, 10vh, 6.5rem);
}

.page-home h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 2rem;
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
}

.page p {
  margin: 0 0 1.15rem;
}

.page p:last-child {
  margin-bottom: 0;
}

.meta {
  margin: 0 0 2.25rem;
  color: var(--muted);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 1.5rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.btn:hover {
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}

.email {
  display: inline-block;
  margin: 0.5rem 0 1.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

.legal h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.legal h1 + .meta + h2,
.legal .meta + h2 {
  margin-top: 0;
}

.legal ul {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal li:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  margin-top: auto;
}

.site-footer .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.15rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:first-child {
  padding-left: 0;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 32rem) {
  .wrap,
  .page {
    width: min(var(--wrap), calc(100% - 2rem));
  }

  .page {
    padding: 3rem 0 4rem;
  }

  .page-home,
  .page-contact {
    padding-top: 3rem;
  }

  .nav a:first-child {
    padding-left: 0;
  }

  .site-header .wrap {
    gap: 0;
  }

  .btn {
    width: 100%;
    max-width: var(--measure);
  }
}

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

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .skip-link,
  .site-header,
  .btn,
  .site-footer nav {
    display: none;
  }

  a {
    text-decoration: none;
  }

  .page {
    width: auto;
    padding: 0;
  }
}
