/* The list of stopped projects: Marco's pick C (arc-eng/hq#1087). Brand fonts, colours and header from the
   Arcane Engineering design system 1.1.0 (arc-eng/brand system/), sized to the mockup at 1440. White page, the one
   accent is District green, no other colour. */
@font-face { font-family: "Gidole"; src: url("fonts/Gidole-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Besley"; src: url("fonts/Besley-VF.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }

:root {
  --page: #FFFFFF; --text: #15171A; --text-2: #4B5057; --text-3: #6A6F76; --line: #E3E5E8;
  --accent: #007A33; --accent-hover: #00602A; --frame: #4E5153;
  --font: "Gidole", "DIN 1451", system-ui, sans-serif; --font-heading: "Besley", Georgia, serif;
  --col: 900px;
}
* { box-sizing: border-box; margin: 0; }
body { background: var(--page); color: var(--text); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.col { max-width: var(--col); margin: 0 auto; }

/* Header: the plate, the name in spaced capitals, "by Marco Lamina", over a full-width green rule. */
.site-header { border-bottom: 4px solid var(--accent); }
.site-header .col { display: flex; align-items: center; padding: 21px 0 21px; }
.brand { display: flex; align-items: center; color: var(--text); text-decoration: none; }
.brand img { display: block; height: 42px; width: auto; }
.brand .name { margin-left: 14px; font-size: 19px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.brand .by { margin-left: 16px; font-size: 19px; color: var(--text-3); white-space: nowrap; }

main .col { padding-top: 60px; }
h1 { font-family: var(--font-heading); font-weight: 400; font-size: 39px; line-height: 1.3; }
.sub { margin-top: 12px; font-size: 21px; line-height: 1.5; color: var(--text-2); }

/* The projects: two cards side by side, one under another on a phone. */
.projects { list-style: none; padding: 0; margin-top: 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.project a.shot { display: block; border: 3px solid var(--frame); border-radius: 6px; overflow: hidden; background: var(--frame); }
.project a.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.project a.shot:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.project h2 { margin-top: 28px; font-family: var(--font-heading); font-weight: 400; font-size: 28px; line-height: 1.3; }
.project .what { margin-top: 10px; font-size: 21px; line-height: 1.4; color: var(--text); }
.project .when { margin-top: 18px; font-size: 21px; line-height: 1.4; color: var(--text-3); }
.project .see { display: inline-block; margin-top: 12px; font-size: 21px; color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.project .see:hover { color: var(--accent-hover); text-decoration-color: var(--accent-hover); }
.project .see span { text-decoration: none; display: inline-block; margin-left: 6px; }

.site-footer { margin-top: 70px; border-top: 1px solid var(--line); padding: 26px 0 50px; font-size: 19px; color: var(--text-3); }

@media (max-width: 960px) {
  .col { padding-left: 26px; padding-right: 26px; }
}
@media (max-width: 760px) {
  .col { padding-left: 14px; padding-right: 14px; }
  .site-header .col { padding-top: 10px; padding-bottom: 12px; }
  .brand img { height: 26px; }
  .brand .name { margin-left: 9px; font-size: 13px; letter-spacing: .12em; }
  .brand .by { margin-left: 7px; font-size: 13px; }
  main .col { padding-top: 34px; }
  h1 { font-size: 30px; line-height: 1.25; }
  .sub { margin-top: 6px; font-size: 15px; }
  .projects { grid-template-columns: 1fr; gap: 34px; margin-top: 16px; }
  .project a.shot img { aspect-ratio: 16 / 5.6; } /* the pick crops the picture to its top on a phone */
  .project h2 { margin-top: 8px; font-size: 24px; }
  .project .what { margin-top: 4px; font-size: 15px; line-height: 1.35; }
  .project .when { margin-top: 8px; font-size: 15px; }
  .project .see { margin-top: 4px; font-size: 15px; }
  .site-footer { margin-top: 34px; padding: 20px 0 34px; text-align: center; font-size: 15px; }
}
