/* ==========================================================================
   Alexei Boronnikov — Portfolio
   base.css — reset, design tokens, typography

   Clean rebuild of artworkintuition.com (Semplice theme, captured 2016).
   Everything here is page-agnostic; per-page theming lives in layout.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Webfonts — Geomanist (book / medium / regular)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Geomanist';
  src: url('../fonts/geomanist-regular.woff2') format('woff2'),
       url('../fonts/geomanist-regular.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geomanist';
  src: url('../fonts/geomanist-medium.woff2') format('woff2'),
       url('../fonts/geomanist-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geomanist';
  src: url('../fonts/geomanist-book.woff2') format('woff2'),
       url('../fonts/geomanist-book.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd,
ul, ol, fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Type */
  --font-sans: 'Geomanist', Helvetica, Arial, sans-serif;

  /* Ink */
  --ink: #333333;
  --ink-muted: #949494;
  --ink-faint: #aaaaaa;
  --line: #e6e6e6;

  /* Surfaces */
  --page: #ffffff;

  /* Site chrome — logo, hamburger, menu. Overridden per page. */
  --chrome-fg: #000000;
  --chrome-menu-bg: rgba(255, 255, 255, 0.95);
  --chrome-menu-fg: #aaaaaa;
  --chrome-menu-active: #000000;

  /* Cover */
  --cover-bg: #ebebeb;
  --cover-fg: #000000;

  /* Metrics */
  --header-h: 70px;
  --gutter: 20px;
  --max-w: 940px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Base typography
   -------------------------------------------------------------------------- */

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Font weights used by the original theme */
.regular {
  font-weight: 300;
}

.semibold {
  font-weight: 600;
}

h3 {
  color: var(--ink-muted);
  font-size: 22px;
  line-height: 40px;
  margin-bottom: 10px;
}

p {
  font-size: 17px;
  line-height: 1.5em;
  margin-bottom: 32px;
}

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

a:hover {
  opacity: 0.6;
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Helpers
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
