/* By Oskar Wickström\nLicensed under the MIT License (https://github.com/owickstrom/the-proportional-web/blob/main/LICENSE.md)\n*/

/* src/reset.css */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* src/base.css */
:root {
  --font-family: "Alegreya", serif;
  --font-family-code: "CommitMono", monospace;
  --line-height: 1.2rem;
  --border-thickness: 1.5px;
  --text-color: #000;
  --background-color: #fff;
  --horizontal-margin: 3ch;
  --body-inner-width: 66ch;
  --body-max-width: calc(
    var(--body-inner-width) + var(--horizontal-margin) * 2
  );
  --font-weight-normal: 450;
  --font-weight-medium: 600;
  --font-weight-bold: 800;
  --shape-margin: 1.25rem;
  --green2: #228b22;
  font-family: var(--font-family);
  font-optical-sizing: auto;
  font-weight: var(--font-weight-normal);
  font-style: normal;
  font-variant-numeric: oldstyle-nums;
  font-feature-settings: "onum";
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

/* * + * { */
/*   margin-top: var(--line-height); */
/* } */

/* src/headings.css */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-normal);
  margin: calc(var(--line-height) * 2) 0 var(--line-height);
  line-height: var(--line-height);
}

.header-section-number {
  font-family: "Alegreya", serif;
  font-size: 0.875rem;
  font-weight: 500;
  font-variant: initial;
  letter-spacing: 0;
  margin-right: 0.5ch;
  font-style: normal;
}

body h1,
h2#toc-title {
  font-family: "Alegreya SC", serif;
  font-variant: titling-caps;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: var(--line-height) 0
    calc(var(--line-height) - var(--border-thickness));
  border-bottom: var(--border-thickness) solid var(--text-color);
}

h1 .header-section-number {
  display: none;
}

h2 {
  font-family: "Alegreya SC", serif;
  font-size: 1.25rem;
  /* font-variant: all-small-caps; */
  font-weight: 700;
  line-height: var(--line-height);
  letter-spacing: 0.125em;
}

h3 {
  font-style: italic;
  margin: var(--line-height) 0;
}

h4 {
}

/* src/tables.css */
table {
  width: 100%;
  border-collapse: collapse;
  margin: calc(var(--line-height) * -0.5) 0 calc(var(--line-height) * 1.5);
  padding: 0;
}

th,
td {
  padding: calc(var(--line-height) / 2) 0.5ch;
  line-height: var(--line-height);
  vertical-align: top;
  text-align: left;
}

th {
  font-size: 1.125em;
  font-variant: all-small-caps;
  font-weight: 500;
  letter-spacing: 0.075em;
}

thead tr:last-child th {
  border-bottom: var(--border-thickness) solid var(--text-color);
}

/* src/blockquotes.css */
blockquote {
  padding: 0;
  margin: var(--line-height) 3ch;
}

blockquote p {
  text-indent: 0;
  white-space: normal;
  font-weight: 700;
}

/* blockquote p:first-of-type:before { */
/*   display: inline; */
/*   content: "\201c"; */
/* } */
/**/
/* blockquote p:last-of-type::after { */
/*   display: inline; */
/*   content: "\201d"; */
/* } */

blockquote footer {
  order: 9999;
  margin-top: var(--line-height);
  font-style: normal;
}

blockquote footer > * {
  margin: 0;
}

blockquote .author {
  font-family: "Alegreya SC", serif;
  font-size: 1.125em;
  font-variant: all-small-caps;
  font-weight: 450;
  line-height: var(--line-height);
  letter-spacing: 0.075em;
  height: 1rem;
  line-height: 1rem;
}

blockquote cite {
  font-style: italic;
  margin: 0;
  line-height: var(--line-height);
}

blockquote .year {
  display: block;
}

/* src/details.css */
details {
  margin: var(--line-height) 0;
  border-top: var(--border-thickness) solid var(--text-color);
  border-bottom: var(--border-thickness) solid var(--text-color);
  padding: var(--line-height) 0;
}

summary {
  font-weight: var(--font-weight-normal);
  font-style: italic;
  cursor: pointer;
}

details[open] summary {
  margin-bottom: var(--line-height);
}

details ::marker {
  content: "";
}

details summary::before {
  display: inline-block;
  content: "\bb";
  margin: 0 0.5ch 0 0;
  font-style: normal;
}

details[open] summary::before {
  transform: rotate(90deg);
}

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

/* src/asides.css */
aside {
  position: relative;
  font-size: 0.875rem;
  line-height: var(--line-height);
  margin: var(--line-height) 0;
}

@media screen and (min-width: 95ch) {
  aside {
    position: absolute;
    width: 20ch;
    top: anchor(top);
    left: 100%;
    margin: 0;
    text-align: left;
  }

  aside:before {
    display: none;
  }

  p + aside + p {
    margin-top: 0;
    text-indent: 3ch;
  }
}

/* src/figures.css */
figure {
  margin: calc(var(--line-height) * 2) var(--horizontal-margin);
  overflow-x: auto;
  overflow-y: hidden;
}

figure > *:first-child {
  margin-top: 0;
}

figure > *:last-child {
  margin-bottom: 0;
}

figcaption {
  display: block;
  margin-top: var(--line-height);
}

figcaption .author {
  font-family: "Alegreya SC", serif;
  font-size: 1.125em;
  font-variant: all-small-caps;
  font-weight: 450;
  line-height: var(--line-height);
  letter-spacing: 0.075em;
  height: 1rem;
  line-height: 1rem;
}

figcaption cite {
  font-style: italic;
  margin: 0;
  line-height: var(--line-height);
}

figure pre {
  margin: 0;
}

/* src/elements.css */
hr {
  position: relative;
  display: block;
  height: var(--line-height);
  margin: calc(var(--line-height) * 1.5) 0;
  border: none;
  color: var(--text-color);
}

hr:before {
  display: block;
  content: "";
  position: absolute;
  top: calc(var(--line-height) / 2);
  left: 0;
  width: 100%;
  border-top: var(--border-thickness) solid var(--text-color);
  height: 0;
}

a {
  text-decoration-thickness: var(--border-thickness);
}

a:link,
a:visited {
  color: var(--text-color);
}

p {
  margin: var(--line-height) 0 0;
  text-align: justify;
  word-break: break-all;
}

h1 + p,
h2 + p,
h3 + p,
h4 + p,
hr + p {
  text-indent: 0;
}

strong {
  font-weight: var(--font-weight-bold);
}

em {
  font-style: italic;
}

abbr {
  font-size: 1.125em;
  font-variant: all-small-caps;
  font-weight: 500;
  letter-spacing: 0.05em;
}

sub {
  position: relative;
  display: inline-block;
  margin: 0;
  vertical-align: sub;
  line-height: 0;
  width: calc(1ch / 0.75);
  font-size: 0.75rem;
}

p {
  word-break: break-word;
  text-wrap: pretty;
  hyphens: auto;
  hyphenate-limit-chars: 3;
}

img,
video {
  display: block;
  width: 100%;
  object-fit: contain;
  overflow: hidden;
}

img {
  font-style: italic;
  color: var(--text-color);
}

pre {
  white-space: pre;
  margin: var(--line-height) 0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

pre,
code {
  font-family: var(--font-family-code);
  font-weight: 450;
}

code {
  font-size: 0.95em;
  letter-spacing: -0.025em;
}

ul,
ol {
  padding: 0;
  margin: 0 0 var(--line-height);
}

ul {
  list-style-type: none;
  padding: 0;
}

ul li:before {
  content: "\2022";
  margin-right: 1ch;
}

ol {
  list-style-type: none;
  counter-reset: item;
  padding: 0;
}

ol ul,
ol ol,
ul ol,
ul ul {
  padding: 0 0 0 2ch;
  margin: 0;
}

ol li:before {
  font-size: 0.875rem;
  font-weight: 500;
  content: counters(item, ".") ". ";
  counter-increment: item;
}

li {
  margin: 0;
  padding: 0;
}

li::marker {
  line-height: 0;
}

/* src/layout.css */
html {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  flex-direction: column;
  align-items: left;
  background: var(--background-color);
  color: var(--text-color);
}

body {
  position: relative;
  width: 100%;
  margin: 0;
  padding: var(--line-height) var(--horizontal-margin);
  max-width: var(--body-max-width);
  line-height: var(--line-height);
  overflow-x: hidden;
}

@media screen and (min-width: 112ch) {
  html {
    align-items: center;
  }
}

@media screen and (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  body {
    padding: var(--line-height) 1.5ch;
  }
}

.toc-section-number {
  height: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-right: 0.5ch;
  font-style: normal;
}

#TOC > ul {
  padding: 0;
}

#TOC ul li:before {
  content: "";
  margin: 0;
}

#TOC a {
  display: block;
  height: var(--line-height);
  text-decoration: none;
}

#TOC a:hover {
  text-decoration: underline;
}

@media print {
  body {
    max-width: initial;
  }

  body > h1,
  img {
    break-before: page;
  }
}

/* src/header.css */
header {
  margin: calc(var(--line-height) * 3) 0;
}

header h1 {
  font-family: "Alegreya SC", serif;
  font-variant: all-small-caps;
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: calc(2 * var(--line-height));
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}

header .subtitle {
  font-size: 1.25rem;
  line-height: calc(2 * var(--line-height));
  margin: calc(var(--line-height) * 0.5) 0;
}

header p {
  text-indent: 0;
  text-align: left;
}

/* src/extras.css */
.canonical-name {
  font-family: "Alegreya SC", serif;
  font-size: 1.125em;
  font-variant: all-small-caps;
  font-weight: 450;
  line-height: var(--line-height);
  letter-spacing: 0.075em;
}

/* src/index.css */

/* mine */
.logo-area {
  margin-bottom: 2rem;

  & .below-heading {
    & .logo {
      float: right;
      width: max(30%, 210px);
      height: auto;
      shape-outside: url("/svgs/logo_green.svg");
      shape-image-threshold: 0.01;
      shape-margin: var(--shape-margin);
      margin-left: var(--shape-margin);
    }

    & p {
      text-align: left;
      margin-top: calc(var(--line-height) * 0.75) !important;
    }

    & .logo-icons {
      display: grid;
      grid-template-columns: repeat(5, 2.25rem);
      width: 100%;
      margin: 1rem 0;

      & a {
        margin: 0;
        justify-self: center;

        & .icon {
          fill: black;
          height: 1.5rem;
          width: 1.5rem;
        }
      }

      & a:hover {
        text-decoration: none;
      }
    }
  }
}

@media screen and (max-width: 480px) {
  .logo-area {
    margin-bottom: 1rem;

    & .below-heading {
      & .logo {
        float: none;
        display: flex;
        width: 90%;
        padding-top: 10px;
        padding-bottom: 10px;
        margin: 0;
      }

      & .logo-icons {
        margin-top: 1rem;
      }
    }
  }
}

/* about */
.float-right {
  float: inline-end;
  width: 50%;
  margin-right: 0px;
  shape-outside: url("/svgs/litter_cycle.svg");
  shape-image-threshold: 0;
  shape-margin: var(--shape-margin);
  margin-left: calc(var(--shape-margin) * 1.1);
}

.float-left {
  float: inline-start;
  width: 50%;
  margin: 0px;
  shape-outside: url("/svgs/vario.svg");
  shape-image-threshold: 0;
  shape-margin: var(--shape-margin);
  margin-right: var(--shape-margin);
}

@media screen and (max-width: 480px) {
  .float-right {
    float: none;
    display: flex;
    padding-top: 20px;
    padding-bottom: 20px;
    margin: auto;
    width: min(90%, 400px);
  }

  .float-left {
    float: none;
    display: flex;
    padding-top: 20px;
    padding-bottom: 20px;
    margin: auto;
    width: min(90%, 300px);
    justify-self: center;
  }
}

/* people */
.pics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 250px);
  gap: 10px;

  & figure {
    margin: 0 !important;
    padding: 0 !important;

    & figcaption {
      margin: 0;
    }
  }
}

.pub {
  margin-bottom: calc(var(--line-height) * 2);

  & p {
    margin-top: calc(var(--line-height) / 2);
  }
  & a {
    /* text-decoration: none; */
    /* color: var(--green2); */
  }
}

#avina {
  margin: calc(var(--line-height) * 2) 0 0 0;
  & figure {
    margin: 0;

    & .avina {
      margin: 0;
      height: 60px;
      width: auto;
    }

    & figcaption {
      margin-top: 0.5rem;
    }
  }
}

#fwf {
  margin: calc(var(--line-height) * 2) 0 0 0;

  & figure {
    margin: 0;

    & .fwf {
      height: 60px;
      width: auto;
    }

    & figcaption {
      margin-top: 0.5rem;
    }
  }
}
