/* RoHouse Creative landing page.
   Rebuilt from the owner's Canva design (a 1425 x 768 canvas). Above 600px the whole canvas
   scales to fit the window, so one unit (--u) is 1/1425 of the canvas width. */
:root {
  --green: #4e5f36;
  --cream: #eeede5;
  --u: calc(min(100vw, 185.547svh) / 1425);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--cream);
  font-family: Ruda, "Trebuchet MS", Arial, sans-serif;
  font-weight: 400;
  text-align: center;
  -webkit-text-size-adjust: 100%;
}
main {
  width: calc(1425 * var(--u));
  min-height: calc(768 * var(--u));
  padding-top: calc(54 * var(--u));
}
p, h1 { margin: 0; font-weight: 400; }
.lead {
  /* the floor keeps text readable on tablets, as the Canva page does */
  font-size: max(calc(39.1145 * var(--u)), min(3.75vw, 37.5px));
  line-height: 1.38;
}
.logo {
  margin: calc(114.5 * var(--u)) 0 calc(149.2 * var(--u));
  line-height: 0;
}
.logo img { display: block; width: 100%; height: auto; }
.contact {
  font-size: max(calc(29.3333 * var(--u)), min(2.8vw, 28px));
  line-height: 1.398;
}
.contact span { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--cream); outline-offset: 0.25em; border-radius: 2px; }

/* Phones: the Canva mobile layout, with larger text that wraps. */
@media (max-width: 600px) {
  main { width: 100%; min-height: 0; padding: calc(8vw + 8svh) 5vw 8vw; }
  .lead { font-size: 8.2vw; line-height: 1.385; }
  .logo { margin: 7.5vw -5vw 10.7vw; }
  .contact { font-size: 5.96vw; line-height: 1.4; }
  .contact span { max-width: 12em; margin: 0 auto; }
}
