/* from.work brand, shared by the work index, AT guide and member pages: warm
   paper and ink for the frame, Instrument Serif headlines, Figtree text, the
   Bricolage wordmark, and colour only where a person is involved. It matches
   the homepage and the demo app so moving between them never feels like
   changing sites. work.css is left alone because the member build ships it too.
   The member build ships only work.css and member.css, so this file is mirrored
   verbatim at the top of member.css; a unit test keeps the two identical. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/src/fonts/figtree-latin-ext-wght.woff2") format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/src/fonts/figtree-latin-wght.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/src/fonts/bricolage-grotesque-latin-ext-wght.woff2")
    format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/src/fonts/bricolage-grotesque-latin-wght.woff2")
    format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/src/fonts/instrument-serif-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/src/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}
:root {
  --paper: #f6f2ea;
  --card: #fffcf6;
  --ink: #1c1a17;
  --muted: #5d574d;
  --rule: #e3dccf;
  --line: #8a8172;
  --accent: #3b5bdb;
  --soft: #efe8db;
  --sam: #f2a900;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --display: var(--serif);
  --wordmark: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --spring: cubic-bezier(0.3, 1.6, 0.5, 1);
  font-family:
    "Figtree",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
::selection {
  background: #ffe39a;
  color: var(--ink);
}
a {
  color: var(--ink);
}
a:hover {
  color: var(--accent);
}
button {
  padding: 10px 20px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
}
button:hover {
  background: var(--soft);
}
/* The one main action is the homepage's ink pill on a mustard ledge. */
button.primary {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 4px 0 var(--sam);
  transition:
    transform 0.25s var(--spring),
    box-shadow 0.25s var(--spring);
}
button.primary:hover {
  background: var(--ink);
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 6px 0 var(--sam);
}
button.primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--sam);
}
button.primary:disabled {
  transform: none;
  box-shadow: none;
}
input,
textarea {
  background: var(--card);
  border-color: var(--line);
  border-radius: 12px;
}
.wordmark {
  font-family: var(--wordmark);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}
:is(h1, h2) {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 {
  font-size: clamp(40px, 5vw, 56px);
}
h2 {
  font-size: clamp(26px, 3vw, 32px);
}
h3 {
  font-weight: 650;
}
code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--soft);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
}
.notice {
  border-color: var(--rule);
  border-radius: 14px;
  background: var(--soft);
}
.panel,
.source-card {
  border-color: var(--rule);
  border-radius: 20px;
}
.panel {
  background: var(--card);
}
.source-card {
  background: var(--soft);
}
.self-reported {
  border: 0;
  border-radius: 999px;
  padding: 1px 10px;
  background: var(--soft);
}

/* A professional page: the person first, their actions beside their words,
   and each piece of work on its own card. */
.profile-head {
  flex-direction: column;
  gap: 20px;
  margin: 40px 0 8px;
}
.profile-id {
  align-items: center;
  gap: 20px;
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sam);
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
}
.profile-id h1 {
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1;
}
.profile-id .summary {
  margin-top: 8px;
  font-size: 19px;
}
.profile-actions button {
  padding: 8px 18px;
}
.profile-work h2 {
  margin: 40px 0 16px;
  padding: 0;
  border: 0;
  font-size: 32px;
  font-weight: 400;
}
.work-entries {
  display: grid;
  gap: 16px;
}
.work-entries > li {
  border: 0;
}
.work-entry {
  padding: 24px 28px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--card);
}
.work-title {
  font-size: 22px;
}
.work-link {
  color: var(--ink);
}
.work-link:hover {
  color: var(--accent);
}
.work-claim {
  font-size: 17px;
}
.about-record {
  margin-top: 32px;
}
@media (max-width: 560px) {
  .profile-id {
    gap: 14px;
  }
  .avatar {
    width: 56px;
    height: 56px;
    font-size: 19px;
  }
  .profile-id h1 {
    font-size: 40px;
  }
  .work-entry {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button.primary {
    transition: none;
  }
  button.primary:hover {
    transform: none;
  }
}
