/* murad.company. Same bones as murad.best: one column, no JS, no build.
   Fluid scales from utopia.fyi, unchanged.
   @link https://utopia.fyi/type/calculator?c=320,18,1.2,1240,20,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

:root {
  --step--2: clamp(0.7813rem, 0.7747rem + 0.0326vi, 0.8rem);
  --step--1: clamp(0.9375rem, 0.9158rem + 0.1087vi, 1rem);
  --step-0: clamp(1.125rem, 1.0815rem + 0.2174vi, 1.25rem);
  --step-1: clamp(1.35rem, 1.2761rem + 0.3696vi, 1.5625rem);
  --step-2: clamp(1.62rem, 1.5041rem + 0.5793vi, 1.9531rem);
  --step-3: clamp(1.944rem, 1.771rem + 0.8651vi, 2.4414rem);
  --step-4: clamp(2.3328rem, 2.0827rem + 1.2504vi, 3.0518rem);
  --step-5: clamp(2.7994rem, 2.4462rem + 1.7658vi, 3.8147rem);

  --space-3xs: 0.3125rem;
  --space-2xs: clamp(0.5625rem, 0.5408rem + 0.1087vi, 0.625rem);
  --space-xs: clamp(0.875rem, 0.8533rem + 0.1087vi, 0.9375rem);
  --space-s: clamp(1.125rem, 1.0815rem + 0.2174vi, 1.25rem);
  --space-m: clamp(1.6875rem, 1.6223rem + 0.3261vi, 1.875rem);
  --space-l: clamp(2.25rem, 2.163rem + 0.4348vi, 2.5rem);
  --space-xl: clamp(3.375rem, 3.2446rem + 0.6522vi, 3.75rem);
  --space-s-3xl: clamp(1.125rem, -1.0924rem + 11.087vi, 7.5rem);
}

/* Brasa: warm paper, dark ink, one ember red. The red is the demon's red.
   Contrast against --bg: text 16.3:1 | ember 5.8:1 | quiet 5.6:1, all AA. */
:root {
  --bg: #fffdf8;
  --surface: #f7f1e9;
  --line: #e9dfd3;
  --text: #1e1a17;
  --accent: #c8102e;
  --accent-deep: #9e0c24;
  --blush: #fbe3e3;
  --quiet: #6b6159;
}

@font-face {
  font-family: "Bruphy Text";
  font-weight: normal;
  font-display: swap;
  src: url("type/BruphyText-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Bruphy Text";
  font-weight: bold;
  font-display: swap;
  src: url("type/BruphyText-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Bruphy Text";
  font-weight: 600;
  font-display: swap;
  src: url("type/BruphyText-Black.woff2") format("woff2");
}

@font-face {
  font-family: "Boxout";
  font-weight: 900;
  font-display: swap;
  src: url("type/Boxout02-Wide-Black.woff2") format("woff2");
}

@font-face {
  font-family: "Berkeley Mono";
  font-weight: 300;
  font-display: swap;
  src: url("type/BerkeleyMono-Regular.woff2") format("woff2");
}

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

html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
  background: var(--bg);
}

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  font-family: "Bruphy Text", Georgia, serif;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  padding: var(--space-s-3xl);
  margin: 0;
}

main {
  max-width: 46rem;
  margin-inline: auto;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* The demon takes the emoji's seat from murad.best. Its steam animation
   lives inside logo.svg, so it also works wherever the file is reused. */
.hero {
  display: block;
  width: clamp(7rem, 5rem + 10vi, 11rem);
  height: auto;
  margin: 0 0 var(--space-xs) -0.4rem;
}

.kicker {
  font-family: "Berkeley Mono", ui-monospace, monospace;
  font-size: var(--step--1);
  color: var(--quiet);
  letter-spacing: .02em;
  margin: 0 0 .4rem 0;
}

h1 {
  color: var(--accent);
  font-family: "Boxout", sans-serif;
  font-weight: 900;
  font-size: var(--step-5);
  margin: 0 0 1rem 0;
  line-height: 1.1;
  text-transform: uppercase;
}

h2 {
  color: var(--accent);
  font-family: "Bruphy Text", sans-serif;
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 2.5rem 0 0 0;
  line-height: 1.15;
}

p {
  margin: 1rem 0;
}

a:link,
a:visited {
  color: var(--accent);
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}

a:hover,
a:focus-visible {
  color: var(--accent-deep);
  text-decoration-thickness: 3px;
}

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

.smaller {
  font-size: 80%;
}

#pitch p {
  margin: 2rem 0;
}

#pitch p:last-child {
  color: var(--accent);
  font-weight: bold;
}

#info {
  margin-top: var(--space-xl);
}

summary {
  margin: 0;
  padding: .7em 0;
  font-weight: bold;
  border-top: 1px solid var(--line);
  list-style-position: outside;
}

summary:hover {
  cursor: pointer;
  color: var(--accent);
}

/* Section markers: small hand-drawn glyphs instead of emoji, so the page
   keeps one colour of red and nothing from the OS emoji font. */
summary .mark {
  display: inline-block;
  width: 1.35em;
  height: 1.35em;
  vertical-align: -.3em;
  margin-right: .4em;
  color: var(--accent);
}

details[open] summary {
  color: var(--accent);
}

details > *:last-child {
  margin-bottom: var(--space-m);
}

ol {
  margin: 1rem 0;
  padding-left: 1.4em;
}

ol li {
  margin: .75rem 0;
}

ol li::marker {
  color: var(--accent);
  font-weight: bold;
}

/* The shelf: one line per thing we made. Adding a product is adding an <li>. */
.shelf ul {
  margin: .75rem 0 0 0;
  padding: 0;
  list-style: none;
}

.shelf li {
  margin: .5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 .75em;
  align-items: baseline;
}

.shelf .name {
  font-weight: bold;
}

.shelf .what,
.shelf .status {
  font-family: "Berkeley Mono", ui-monospace, monospace;
  /* 76% of the 80% section text keeps this at 13px or more on a phone */
  font-size: 76%;
  color: var(--quiet);
}

.shelf .status {
  font-style: italic;
  color: var(--accent);
}

.shelf .status::before {
  content: "\00b7\00a0";
  color: var(--quiet);
}

.shelf .note {
  color: var(--quiet);
  border-left: 2px solid var(--blush);
  padding-left: var(--space-s);
  margin-top: var(--space-m);
}

/* Contact card: the only box on the page, tinted with the demon's blush. */
.card {
  background: var(--blush);
  border-radius: 14px;
  padding: var(--space-s) var(--space-m);
  margin: var(--space-m) 0;
}

.card p {
  margin: .5rem 0;
}

.card .aside {
  color: var(--quiet);
  font-size: 90%;
}

.card p.aside {
  margin: 0 0 1rem 0;
}

.card code {
  font-family: "Berkeley Mono", ui-monospace, monospace;
  font-size: 85%;
}

#footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-s);
  border-top: 1px solid var(--line);
  color: var(--quiet);
  display: flex;
  gap: var(--space-s);
  align-items: flex-start;
}

#footer .tiny {
  flex: none;
  width: 2.75rem;
  height: auto;
  margin-top: .9rem;
}

#footer a:link,
#footer a:visited {
  color: var(--quiet);
}

#footer a:hover,
#footer a:focus-visible {
  color: var(--accent);
}
