/* Thalamus website styles. Mobile first: base rules are for phones, and the
   media queries at the end of each section widen the layout. */

:root {
  --purple: #200924;
  --night: #13020e;
  --plum: #823a65;
  --text: #333;
  --muted: #666;
  --faint: #888;
  --rule: #ddd;
  --gutter: 20px;
}

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

/* The html background fills any space below a short page, so the body's
   background images stop at the footer. */
html { -webkit-text-size-adjust: 100%; background: var(--purple); }

body {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}

h1, h2, h3, p, ul, blockquote { margin: 0; }
img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow { max-width: 680px; }

.icon { display: inline-block; vertical-align: -0.2em; }

@media (min-width: 48em) {
  :root { --gutter: 32px; }
}

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

.site-header { padding: 20px 0; }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .logo { display: block; line-height: 0; }
.site-header .logo img { width: 120px; }
.site-header nav { display: flex; gap: 16px; }
.site-header nav a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, 0.6); }

@media (min-width: 48em) {
  .site-header .logo img { width: 150px; }
  .site-header nav { gap: 24px; }
  .site-header nav a { font-size: 13px; font-weight: 400; }
}

/* ---------- Home page ---------- */

/* On phones the skyline sits behind the text, so the hero gets a dark wash.
   On wider screens the image's dark left side holds the text instead. */
body.home {
  background: var(--night) url("/assets/images/city.webp") no-repeat 68% 0 / auto 760px;
  color: #fff;
}

.hero {
  padding: 48px 0 56px;
  background: linear-gradient(to bottom, rgba(19, 2, 14, 0.35), rgba(19, 2, 14, 0.75));
}
.hero h1 {
  font-size: clamp(26px, 6.5vw, 34px);
  line-height: 1.2;
  font-weight: 400;
  max-width: 15em;
  margin-bottom: 20px;
}
.hero p {
  font-size: 17px;
  line-height: 1.55;
  max-width: 30em;
  margin-bottom: 16px;
}
.hero p:last-child { margin-bottom: 0; }

.home-portfolio {
  background: rgba(0, 0, 0, 0.9);
  padding: 32px 0 40px;
}
.home-portfolio h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 20px;
}
.projects {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.projects a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding: 16px 8px;
  background: #2b2b2b;
  border-radius: 3px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}
.projects a:hover { background: #3a3a3a; }
.projects img { height: 22px; width: auto; }
.projects span { color: #999; font-size: 13px; font-weight: 400; line-height: 1.3; }

@media (min-width: 40em) {
  .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 62em) {
  body.home {
    background-position: right top;
    background-size: max(1400px, 100%) auto;
  }
  .hero { padding: 96px 0 72px; background: none; }
  .hero h1 { font-size: 34px; }
  .home-portfolio { padding: 32px 0 48px; }
  .home-portfolio h2 { text-align: left; font-weight: 400; }
  .projects { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
  .projects a {
    align-items: flex-start;
    padding: 0;
    gap: 14px;
    background: none;
    text-align: left;
  }
  .projects a:hover { background: none; }
  .projects a:hover span { color: #ccc; }
  .projects img { height: 25px; }
}

/* ---------- Inner pages ---------- */

body.inner {
  background: #fff url("/assets/images/header-background.webp") no-repeat center top / auto 300px;
}

.page-header {
  color: #fff;
  min-height: 236px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 28px;
  margin-bottom: 40px;
}
.page-header h1 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 10px;
}
.page-header p { font-size: 15px; margin-bottom: 4px; }

/* The press release has no page header, so only the nav bar is purple. */
body.inner.compact { background: #fff; }
body.inner.compact .site-header {
  background: url("/assets/images/header-background.webp") no-repeat center / cover;
  margin-bottom: 32px;
}

/* ---------- Portfolio page ---------- */

.portfolio { padding-bottom: 40px; }
.project + .project {
  border-top: 1px solid var(--rule);
  margin-top: 40px;
  padding-top: 40px;
}
.project img { display: block; width: 100%; margin-bottom: 16px; border-radius: 2px; }
.project header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.project h2 { color: var(--purple); font-size: 16px; font-weight: 700; }
.project .tagline {
  color: #999;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
  border-left: 1px solid var(--rule);
  padding-left: 12px;
}
.project > p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 12px;
}
.project > a { color: var(--muted); font-size: 13px; font-weight: 400; }

/* ---------- Press pages ---------- */

.press-list { padding-bottom: 48px; }
.press-item h2 { font-size: 20px; line-height: 1.3; font-weight: 400; margin-bottom: 12px; }
.press-item p { font-size: 16px; line-height: 1.55; margin-bottom: 12px; }
.press-item a { color: var(--text); font-size: 16px; }

.press-release { padding-bottom: 56px; overflow-wrap: break-word; }
.press-release h1 { font-size: 24px; line-height: 1.3; font-weight: 400; margin-bottom: 10px; }
.press-release .date {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: #aaa;
  margin-bottom: 24px;
}
.press-release h2 {
  font-size: 19px;
  font-weight: 400;
  text-decoration: underline;
  margin: 40px 0 16px;
}
.press-release h3 { font-size: 16px; font-weight: 400; margin: 20px 0 10px; }
.press-release p,
.press-release ul,
.press-release blockquote { font-size: 17px; line-height: 1.55; }
.press-release p { margin-bottom: 12px; }
.press-release strong { font-weight: 700; }
.press-release a { color: var(--text); }
.press-release ul { padding-left: 20px; margin-bottom: 12px; }
.press-release li { margin-bottom: 10px; }
.press-release blockquote {
  border-left: 4px solid var(--rule);
  margin: 0 0 12px;
  padding-left: 16px;
}

.press-release ul.resources {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}
.resources li { margin: 0; text-align: center; }
.resources img {
  display: block;
  height: 72px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin: 0 auto 6px;
  border: 1px solid var(--rule);
  background: #fafafa;
}

@media (min-width: 48em) {
  .press-release h1 { font-size: 26px; }
}

/* ---------- Press enquiries and footer ---------- */

.press-enquiries {
  background: #eee;
  color: var(--faint);
  padding: 32px 0;
  text-align: center;
}
.press-enquiries h2 { font-size: 17px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.press-enquiries p { font-size: 15px; font-weight: 400; margin-bottom: 10px; }
.press-enquiries a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--plum);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  background: var(--purple);
  color: var(--faint);
  text-align: center;
  padding: 20px 0 24px;
  font-size: 14px;
}
.site-footer p { margin-bottom: 8px; }
.site-footer .social { display: flex; justify-content: center; gap: 8px; }
.site-footer .social a { color: var(--faint); padding: 4px; line-height: 0; }
.site-footer .social a:hover { color: #bbb; }
