/* jobinthomas.co — landing page styles */

:root {
  --paper:    #FAF8F2; /* warm paper background */
  --ink:      #211D17; /* warm near-black body text */
  --accent:   #3B3F86; /* indigo */
  --muted:    #6B6457; /* warm gray, secondary text */
  --hairline: #E4DFD3; /* borders and rules */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1875rem;          /* ~19px */
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Pale indigo text selection */
::selection {
  background: rgba(59, 63, 134, 0.14);
  color: var(--ink);
}

/* Single, centered column with a 60–70 character measure */
.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vmin, 6.5rem) 1.5rem 3rem;
}

/* Masthead */
.portrait {
  display: block;                      /* left-aligned in the column */
  width: clamp(88px, 26vw, 100px);     /* about 100px; eases down on small screens */
  aspect-ratio: 1 / 1;                 /* stays a perfect circle at any width */
  height: auto;
  margin: 0 0 1.5rem;                  /* space above the name */
  border-radius: 50%;                  /* clean circle */
  object-fit: cover;                   /* fill without distortion; no border, shadow, or filter */
}

.name {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.25rem, 6vw, 2.875rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.signature {
  width: 2.5rem;
  height: 2px;
  margin: 1.15rem 0 1rem;
  background: var(--accent);
  border-radius: 1px;
}

.descriptor {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Intro */
.intro {
  margin-top: 2.75rem;
}

.intro p {
  margin: 0 0 1.35em;
}

.intro p:last-child {
  margin-bottom: 0;
}

/* Links: indigo, underlined */
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-thickness 0.15s ease;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Footer */
.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.9375rem;
}

/* Wide screens (laptop and up): left-anchor the column instead of centering it.
   The column width, and so the reading measure, is unchanged; it simply shifts
   toward a comfortable left margin, leaving the open space to pool on the right.
   Below this width (phones and small tablets) the base centered single-column
   layout above still applies, with comfortable padding on both sides. */
@media (min-width: 64rem) {
  .page {
    margin-left: 12vw;   /* ~12% of the window: clear of the edge, and clearly less than the space left on the right */
    margin-right: auto;  /* the remaining width pools on the right */
  }
}
