/* The site's one stylesheet. Sizes, colours and spacing are measured from the live
   site's page data: a 1024-pixel column, desktop first (blueprint.md, stage 5). */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1e1e1e;
  --bar: #363636;
  --text: #dadada;
  --text-dim: rgb(218 218 218 / 0.6);
  --hover: rgb(138 92 244 / 0.8);
  --page: 1024px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: var(--page);
  background: var(--bg);
  color: var(--text);
  font: 400 18px/24px "Inter", sans-serif;
  -webkit-font-smoothing: antialiased; /* as on Readymag, which thins the text on a Mac */
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul { margin: 0; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--hover); }

/* The header, fixed at the top, and the footer: the same on every page */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 60px;
  background: var(--bar);
}
.site-header__inner {
  display: flex;
  width: var(--page);
  height: 100%;
  margin: 0 auto;
  padding: 18px 21px 0 20px;
}
.site-header__name { font-weight: 600; }
.site-header__nav { display: flex; gap: 38px; margin-left: auto; }
.site-header__nav a { width: 70px; }
.site-footer { height: 59px; margin-top: 1px; background: var(--bar); } /* 1px lower, as on Readymag */
.site-footer p { width: var(--page); margin: 0 auto; padding: 18px 19px 0; }

/* The page column, under the header */
main { width: var(--page); margin: 0 auto; padding: 60px 20px 0; }

/* Text styles, named after Readymag's */
.title { font: 700 48px/60px "Roboto", sans-serif; text-align: center; } /* H1 */
h2 { font-size: 36px; line-height: 44px; font-weight: 500; }
h3 { font-size: 24px; line-height: 30px; font-weight: 600; }
.center { text-align: center; }
.dim { color: var(--text-dim); }
p + p { margin-top: 24px; } /* a blank line between paragraphs */

.list { padding-left: 15px; list-style: none; }
.list li::before { content: "•"; position: absolute; margin-left: -15px; }

/* A row of two columns: a heading on the left, its text on the right */
.row { display: grid; grid-template-columns: 482px 482px; column-gap: 20px; align-items: start; }

/* Pictures */
.picture { width: 984px; height: auto; border-radius: 24px; }
.shadow { box-shadow: 2px 2px 4px #000; }
.text-shadow { text-shadow: 2px 2px 4px #000; }
.faded { opacity: 0.6; }

/* The home page */
.hero { display: flex; gap: 60px; }
.hero__photo { width: 231px; height: 231px; border-radius: 50%; object-fit: cover; }
.hero__text { width: 538px; margin-top: 28px; }
.hero h1 { font-size: 52px; line-height: 64px; font-weight: 500; }
.hero p { font-size: 24px; line-height: 30px; font-weight: 600; }

/* A short page, e.g. the login page: the footer at the bottom of the window */
.short { display: flex; flex-direction: column; min-height: 100vh; }
.short main { flex: 1; }

/* The login page, in front of a case study (a first design, to try) */
.login { width: 482px; margin-left: auto; margin-right: auto; text-align: center; }
.login__field { display: flex; gap: 12px; }
.login input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--bar);
  color: var(--text);
  font: inherit;
}
.login input:focus { outline: none; border-color: var(--hover); }
.login button {
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.login button:hover { background: var(--hover); color: #fff; }
.login__message { color: #f28b82; }
.login__message:empty { display: none; }

/* Readymag's small offsets, where they change how a text wraps: a block 2px further right is 2px narrower */
.x-1 { margin-left: 1px; }
.x-2 { margin-left: 2px; }
.w-480 { max-width: 480px; }

/* Vertical spacing, measured from the page data */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-36 { margin-top: 36px; }
.mt-40 { margin-top: 40px; }
.mt-68 { margin-top: 68px; }
.mt-70 { margin-top: 70px; }
.mt-80 { margin-top: 80px; }
.mt-88 { margin-top: 88px; }
.end-103 { padding-bottom: 103px; }
.end-112 { padding-bottom: 112px; }
