/* ==========================================================================
   richardrose.org — shared stylesheet
   Used by: index.html, 404.html, 403.html
   ========================================================================== */

/* sh add Dev Toold hidpi screen on laptop" image
ushed to the right google answer */

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

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Prevents the page from scrolling or breaking to the right */
}

/* =========== */

:root {
  --ink: #000;
  --ink-soft: #000;
  --paper: #faf8f4;
  --paper-shade: #f1ede4;
  --line: #ddd6c8;
  --accent: #000;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 28px;
}

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

header {
  padding: 72px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-family: "Jost", Helvetica, Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 0.28em;
  margin: 0 0 18px;
}

h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: 42px;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
}

.dates {
  font-family: "Jost", Helvetica, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin: 0;
}

.rule {
  width: 44px;
  height: 1px;
  background: var(--accent);
  margin: 26px auto 0;
  border: none;
}

/* ---------- Portrait ---------- */

.portrait {
  display: flex;
  justify-content: center;
  margin: 20px 0 8px;
}

.portrait img {
  width: 200px;
  height: 302px;
}

.caption {
  text-align: center;
  font-family: "Jost", Helvetica, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.03em;
  margin: 12px 0 0;
}

.caption a {
  color: #000;
}

/* ---------- Body copy ---------- */

main {
  padding: 44px 0 8px;
}

main p {
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 24px;
}

main p:last-of-type {
  margin-bottom: 0;
}

/* ---------- Coming soon notice / error notice ---------- */

.notice {
  margin: 20px 0;
  padding: 10px 32px;
  background: var(--paper-shade);
  border: 1px solid var(--line);
  border-radius: 3px;
  text-align: center;
}

.notice .label {
  font-family: "Jost", Helvetica, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.28em;
  margin: 0 0 10px;
}

.notice p {
  font-size: 16px;
  margin: 0;
}

/* ---------- Contact ---------- */

.contact {
  padding: 10px 0 64px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  text-align: center;
}

.contact h2 {
  font-family: "Jost", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.contact-links a,
.home-link {
  font-family: "Jost", Helvetica, Arial, sans-serif;
  font-size: 18px;
  color: var(--ink);
  /* keep "color: ink" so the links are not blue*/
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.contact-links a:hover,
.home-link:hover {
  color: var(--accent);
  border-color: var(--ink);
}

.contact-links .desc {
  display: block;
  font-family: "Jost", Helvetica, Arial, sans-serif;
  font-size: 16px;
  margin-top: 4px;
  border: none;
}

/* ---------- Error pages (404 / 403) ---------- */

.error-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.error-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px;
  text-align: center;
}

.code {
  font-family: "Jost", Helvetica, Arial, sans-serif;
  font-size: 20px;
  letter-spacing: 0.1em;
  margin: 0 0 26px;
}

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 0 0 48px;
}

footer p {
  font-family: "Jost", Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  h1 {
    font-size: 32px;
  }
  header {
    padding: 56px 0 32px;
  }
  main p {
    font-size: 16px;
  }
  .notice {
    padding: 28px 22px;
  }
}
