/* ---------------------------------------------------------
   Emily Wasilewski — personal site
   Colors live here. Change these six and the whole page shifts.
   --------------------------------------------------------- */

:root {
  --wall:   #e8ebe3;  /* background, a painted kitchen wall */
  --paper:  #f4f6f0;  /* the content column */
  --ink:    #2b3229;  /* body text */
  --muted:  #6a7265;  /* quieter text */
  --accent: #7a5a72;  /* dusty plum */
  --rule:   #ccd3c4;  /* soft edges */

  --body: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --display: "Crete Round", Georgia, serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.72;
}

/* --- the page itself, a sheet laid on the wall --- */

.page {
  max-width: 41rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.35rem, 5vw, 3.25rem) 3rem;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  min-height: 100vh;
}

/* --- opening --- */

.intro { margin-bottom: 2.75rem; }

.portrait {
  width: 8.5rem;
  height: 8.5rem;
  display: block;
  object-fit: cover;
  background: #dde3d6;
  border: 6px solid #fff;
  box-shadow: 0 1px 0 var(--rule);
  transform: rotate(-2.5deg);
  margin: 0 0 1.9rem;
}

.portrait--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.35rem, 8vw, 3.5rem);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -.005em;
}

.scribble {
  display: block;
  width: min(19rem, 95%);
  height: auto;
  margin-top: .4rem;
  color: var(--accent);
  opacity: .8;
}

.tagline {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-style: italic;
}

/* --- text --- */

.prose { margin: 0 0 2rem; }

.prose p { margin: 0 0 1.15rem; }

.prose h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 0 0 .85rem;
}

/* a list that doesn't look like a list of features */
.plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain li {
  padding: .42rem 0 .42rem 1.4rem;
  position: relative;
}

.plain li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* --- links --- */

a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent); }

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

.elsewhere { color: var(--muted); }

/* --- running stitch between sections --- */

.stitch {
  border: 0;
  border-top: 2px dashed var(--accent);
  opacity: .4;
  margin: 2.6rem 0;
}

/* --- close --- */

.footer {
  margin-top: 3.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .9rem;
}

.footer p { margin: 0; }

/* --- narrow screens: let the sheet run edge to edge --- */

@media (max-width: 30rem) {
  body { font-size: 18px; }
  .page { border-left: 0; border-right: 0; }
  .portrait { width: 7rem; height: 7rem; }
}
