/*
Theme Name: excessᴍᴀᴄʜɪɴᴀ 0.1
Theme URI: https://excessmachina.com/
Author: excessᴍᴀᴄʜɪɴᴀ
Description: Sitewide Apple-reader sans serif theme for excessᴍᴀᴄʜɪɴᴀ.
Version: 0.1
Text Domain: excessmachina
*/

/* -------------------------------------------------------------
   1. Root and reset
------------------------------------------------------------- */

:root {
  --site-bg: #f7f7f5;
  --text: #1c1c1e;
  --text-soft: #6e6e73;
  --text-softer: #8e8e93;
  --rule: #e5e5e7;
  --rule-dark: #d2d2d7;
  --caption-rule: #d8d8dc;
  --heading: #111111;
  --column: 760px;
  --gutter: 24px;
  --radius: 0px;
  --body-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

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

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
nav,
section {
  display: block;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

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

th,
td {
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  max-width: 100%;
  margin: 0;
}

body {
  background: var(--site-bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

/* -------------------------------------------------------------
   2. Universal typography enforcement
------------------------------------------------------------- */

html,
body,
button,
input,
select,
textarea,
div,
span,
p,
a,
li,
dt,
dd,
blockquote,
cite,
figcaption,
small,
strong,
em,
h1,
h2,
h3,
h4,
h5,
h6,
table,
thead,
tbody,
tfoot,
tr,
th,
td,
label,
legend,
nav,
header,
footer,
main,
section,
article,
aside,
.site,
.site-title,
.site-title a,
.site-description,
.site-content,
.content-area,
.site-main,
.posts-index,
.hentry,
.entry-header,
.entry-title,
.entry-title a,
.entry-content,
.entry-content p,
.entry-content li,
.entry-content blockquote,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.entry-summary,
.entry-summary p,
.entry-summary li,
.entry-summary blockquote,
.entry-summary h1,
.entry-summary h2,
.entry-summary h3,
.entry-summary h4,
.entry-summary h5,
.entry-summary h6,
.entry-meta,
.entry-footer,
.entry-date,
.byline,
.cat-links,
.tags-links,
.wp-caption-text,
.navigation,
.posts-navigation,
.post-navigation,
.page-title,
.page-header,
.more-link {
  font-family: var(--body-font) !important;
}

/* -------------------------------------------------------------
   3. Links
------------------------------------------------------------- */

a {
  color: inherit;
  background: transparent;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}

a:hover,
a:active {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* -------------------------------------------------------------
   4. Global layout
------------------------------------------------------------- */

#page.site,
.site,
.site-content,
.content-wrapper,
.content-area,
.site-main,
#primary,
#main,
.posts-index {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

#page.site {
  min-height: 100vh;
}

.site-content {
  padding: 0;
}

#primary.content-area,
.content-area {
  width: 100%;
  max-width: calc(var(--column) + (var(--gutter) * 2));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site-main,
#main,
.posts-index {
  width: 100%;
}

/* Kill legacy float-based layout */
.site-header,
.site-content,
.content-wrapper,
.content-area,
.site-main,
#primary,
#main,
.hentry,
.entry-header,
.entry-content,
.entry-footer,
.footer-widgets,
.widget-areas,
.widget-area,
.widget {
  float: none !important;
  clear: both;
}

/* -------------------------------------------------------------
   5. Masthead
------------------------------------------------------------- */

.site-header {
  width: 100%;
  max-width: calc(var(--column) + (var(--gutter) * 2));
  margin: 2.25rem auto 1.5rem;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  text-align: center;
}

.site-branding,
.inner.site-branding {
  margin: 0;
  padding: 0;
}

.site-title {
  margin: 0 0 0.1rem;
  color: var(--heading);
  text-align: center;
  text-transform: lowercase;
  font-size: 2.2rem;
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-description {
  margin: 0;
  color: var(--text-soft);
  text-align: center;
  font-size: 1rem;
  line-height: 1.42;
  font-style: italic;
}

/* -------------------------------------------------------------
   6. Archive list and posts
------------------------------------------------------------- */

.posts-index {
  display: block;
}

.hentry {
  width: 100%;
  margin: 0 0 2.2rem;
  padding: 0 0 2.2rem;
  border-bottom: 1px solid var(--rule);
}

.hentry:last-child {
  border-bottom: 0;
}

.blog .site-main > .hentry,
.home .site-main > .hentry,
.archive .site-main > .hentry {
  margin-top: 0;
}

/* -------------------------------------------------------------
   7. Entry header and titles
------------------------------------------------------------- */

.entry-header {
  margin: 0 0 0.72rem;
  padding: 0;
}

.entry-title {
  margin: 0 0 0.3rem;
  color: var(--heading);
  text-align: left;
  font-size: 1.82rem;
  line-height: 1.16;
  font-weight: 630;
  letter-spacing: -0.022em;
  text-wrap: balance;
  word-wrap: break-word;
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus,
.entry-title a:active {
  opacity: 1;
}

/* -------------------------------------------------------------
   8. Meta and footer
------------------------------------------------------------- */

.entry-meta,
.entry-footer,
.entry-date,
.byline,
.cat-links,
.tags-links,
.comments-link,
.posted-on,
.site-posted-on {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: left;
}

.entry-footer {
  margin-top: 0.9rem;
}

.entry-meta {
  margin: 0;
}

.entry-meta > span {
  display: inline-block;
  margin-right: 1rem;
  vertical-align: baseline;
}

.entry-meta > span:last-child {
  margin-right: 0;
}

.entry-footer a,
.entry-meta a {
  text-decoration-color: rgba(110, 110, 115, 0.35);
}

/* -------------------------------------------------------------
   9. Body copy
------------------------------------------------------------- */

.entry-content,
.entry-summary {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.76;
}

.entry-content p,
.entry-summary p,
.entry-content li,
.entry-summary li,
.entry-content blockquote,
.entry-summary blockquote {
  text-align: justify;
  text-align-last: left;
  -webkit-hyphens: auto;
  hyphens: auto;
  word-break: normal;
  overflow-wrap: normal;
}

.entry-content p,
.entry-summary p,
.entry-content ul,
.entry-summary ul,
.entry-content ol,
.entry-summary ol,
.entry-content blockquote,
.entry-summary blockquote {
  margin-top: 0;
  margin-bottom: 1rem;
}

.entry-content ul,
.entry-summary ul,
.entry-content ol,
.entry-summary ol {
  padding-left: 1.2rem;
}

.entry-content li,
.entry-summary li {
  margin-bottom: 0.38rem;
}

/* -------------------------------------------------------------
   10. In-article headings
------------------------------------------------------------- */

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.entry-summary h1,
.entry-summary h2,
.entry-summary h3,
.entry-summary h4,
.entry-summary h5,
.entry-summary h6 {
  margin-top: 1.8rem;
  margin-bottom: 0.65rem;
  color: var(--heading);
  text-align: left;
  line-height: 1.26;
  font-style: normal;
  text-wrap: balance;
}

.entry-content h1,
.entry-summary h1 {
  font-size: 1.48rem;
  font-weight: 690;
}

.entry-content h2,
.entry-summary h2 {
  font-size: 1.28rem;
  font-weight: 680;
}

.entry-content h3,
.entry-summary h3 {
  font-size: 1.14rem;
  font-weight: 650;
}

.entry-content h4,
.entry-summary h4 {
  font-size: 1.04rem;
  font-weight: 640;
}

.entry-content h5,
.entry-summary h5 {
  font-size: 1rem;
  font-weight: 620;
}

.entry-content h6,
.entry-summary h6 {
  font-size: 0.9rem;
  font-weight: 620;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* -------------------------------------------------------------
   11. In-content links
------------------------------------------------------------- */

.entry-content a,
.entry-summary a,
.page-content a {
  color: inherit;
  text-decoration-color: rgba(28, 28, 30, 0.34);
}

.entry-content a:hover,
.entry-summary a:hover,
.page-content a:hover {
  text-decoration-color: rgba(28, 28, 30, 0.68);
}

/* -------------------------------------------------------------
   12. Images, preview images, figures
------------------------------------------------------------- */

.entry-preview-image,
.entry-content .entry-preview-image,
.entry-summary .entry-preview-image {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
}

.entry-preview-image img,
.entry-content .entry-preview-image img,
.entry-summary .entry-preview-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.entry-content img,
.entry-summary img,
.entry-content figure,
.entry-summary figure,
.entry-content .wp-block-image,
.entry-summary .wp-block-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.2rem auto 1rem;
  border-radius: 0;
  box-shadow: none;
}

.entry-content > p:empty,
.entry-summary > p:empty {
  display: none;
}

.entry-content .wp-block-spacer,
.entry-summary .wp-block-spacer {
  display: none;
}

/* -------------------------------------------------------------
   13. Captions
------------------------------------------------------------- */

.entry-content figcaption,
.entry-summary figcaption,
.wp-caption-text {
  margin-top: 0.45rem;
  margin-bottom: 0.95rem;
  padding-left: 0.72rem;
  border-left: 2px solid var(--caption-rule);
  color: #7a7a80;
  text-align: left;
  font-size: 0.86rem;
  line-height: 1.45;
  font-style: italic;
}

/* -------------------------------------------------------------
   14. Blockquotes
------------------------------------------------------------- */

.entry-content blockquote,
.entry-summary blockquote {
  margin: 1.45rem 0;
  padding: 0 0 0 0.95rem;
  border-left: 3px solid var(--rule-dark);
  color: #3a3a3c;
}

/* -------------------------------------------------------------
   15. Continue reading
------------------------------------------------------------- */

.more-link,
.more-link:link,
.more-link:visited {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  text-decoration: underline;
  text-decoration-color: rgba(110, 110, 115, 0.38);
  text-underline-offset: 0.12em;
}

.more-link:hover,
.more-link:active {
  background: transparent;
  color: var(--text);
  text-decoration-color: rgba(28, 28, 30, 0.58);
}

/* -------------------------------------------------------------
   16. Navigation and footer
------------------------------------------------------------- */

.navigation,
.posts-navigation,
.post-navigation,
.site-footer {
  color: var(--text-soft);
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.45;
  border: 0;
  box-shadow: none;
}

.posts-navigation,
.post-navigation {
  width: 100%;
  margin-top: 1.75rem;
  padding-top: 1rem;
}

.site-footer {
  width: 100%;
  max-width: calc(var(--column) + (var(--gutter) * 2));
  margin: 0 auto;
  padding: 2rem var(--gutter) 1.5rem;
}

.footer-widgets,
.widget-areas {
  margin: 0;
  padding: 0;
}

.widget-area,
.widget {
  display: none;
}

/* -------------------------------------------------------------
   17. Hide unwanted furniture
------------------------------------------------------------- */

.main-navigation,
.secondary,
.widget-area,
.menu-toggle,
.post-tags,
.tags-links,
.cat-links,
.byline,
.author,
.author-box {
  display: none !important;
}

/* -------------------------------------------------------------
   18. WordPress core and block compatibility
------------------------------------------------------------- */

.alignleft {
  float: left;
  margin-right: 1.25rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.aligncenter {
  clear: both;
  margin-left: auto;
  margin-right: auto;
}

.wp-block-group,
.wp-block-columns,
.wp-block-column,
.wp-block-cover,
.wp-block-media-text,
.wp-block-gallery,
.wp-block-quote,
.wp-block-pullquote,
.wp-block-table,
.wp-block-preformatted,
.wp-block-code {
  font-family: var(--body-font) !important;
}

.wp-block-image img,
.wp-block-cover img,
.wp-block-gallery img {
  border-radius: 0;
  box-shadow: none;
}

pre,
code,
kbd,
tt,
var {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* -------------------------------------------------------------
   19. Desktop
------------------------------------------------------------- */

@media (min-width: 1180px) {
  :root {
    --column: 780px;
  }

  .entry-title {
    font-size: 2rem;
    line-height: 1.12;
    font-weight: 620;
    letter-spacing: -0.024em;
    margin-bottom: 0.42rem;
  }

  .entry-content,
  .entry-summary {
    font-size: 1.1rem;
    line-height: 1.78;
  }

  .entry-content h1,
  .entry-summary h1 {
    font-size: 1.54rem;
  }

  .entry-content h2,
  .entry-summary h2 {
    font-size: 1.32rem;
  }

  .entry-content h3,
  .entry-summary h3 {
    font-size: 1.16rem;
  }
}

/* -------------------------------------------------------------
   20. Landscape tablets
------------------------------------------------------------- */

@media (min-width: 820px) and (max-width: 1179px) and (orientation: landscape) {
  :root {
    --column: 730px;
  }

  .entry-title {
    font-size: 1.9rem;
    line-height: 1.14;
    font-weight: 625;
    letter-spacing: -0.019em;
  }

  .entry-content,
  .entry-summary {
    font-size: 1.08rem;
    line-height: 1.76;
  }
}

/* -------------------------------------------------------------
   21. Portrait tablets
------------------------------------------------------------- */

@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  :root {
    --column: 690px;
    --gutter: 22px;
  }

  .entry-title {
    font-size: 1.68rem;
    line-height: 1.16;
    font-weight: 628;
    letter-spacing: -0.016em;
  }

  .entry-content,
  .entry-summary {
    font-size: 1.05rem;
    line-height: 1.74;
  }
}

/* -------------------------------------------------------------
   22. Mobile
------------------------------------------------------------- */

@media (max-width: 768px) {
  :root {
    --gutter: 22px;
  }

  body {
    background: #ffffff;
  }

  .site-header {
    margin: 1.5rem auto 1.1rem;
  }

  .site-title {
    font-size: 1.75rem;
    margin-bottom: 0.08rem;
  }

  .site-description {
    font-size: 0.94rem;
    line-height: 1.4;
  }

  .entry-header {
    margin-bottom: 0.58rem;
  }

  .entry-title {
    font-size: 1.46rem;
    line-height: 1.2;
    font-weight: 625;
    letter-spacing: -0.013em;
    margin-bottom: 0.22rem;
  }

  .entry-content,
  .entry-summary {
    font-size: 1.02rem;
    line-height: 1.72;
  }

  .entry-content p,
  .entry-summary p,
  .entry-content li,
  .entry-summary li,
  .entry-content blockquote,
  .entry-summary blockquote {
    text-align: justify;
    text-align-last: left;
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  .entry-content img,
  .entry-summary img,
  .entry-content figure,
  .entry-summary figure,
  .entry-content .wp-block-image,
  .entry-summary .wp-block-image,
  .entry-preview-image {
    width: 100%;
    max-width: 100%;
    margin: 0.9rem 0 1rem;
  }

  .entry-content figcaption,
  .entry-summary figcaption,
  .wp-caption-text {
    margin-top: 0.42rem;
    margin-bottom: 0.95rem;
    padding-left: 0.65rem;
    color: #84848a;
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .entry-content h1,
  .entry-summary h1 {
    font-size: 1.34rem;
  }

  .entry-content h2,
  .entry-summary h2 {
    font-size: 1.2rem;
  }

  .entry-content h3,
  .entry-summary h3 {
    font-size: 1.08rem;
  }

  .entry-content h1,
  .entry-content h2,
  .entry-content h3,
  .entry-content h4,
  .entry-content h5,
  .entry-content h6,
  .entry-summary h1,
  .entry-summary h2,
  .entry-summary h3,
  .entry-summary h4,
  .entry-summary h5,
  .entry-summary h6 {
    margin-top: 1.65rem;
    margin-bottom: 0.6rem;
  }

  .post-navigation,
  .posts-navigation,
  .navigation.post-navigation,
  .navigation.posts-navigation {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid #ececef;
    opacity: 0.58;
    font-size: 0.82rem;
  }

  .post-navigation .meta-nav,
  .posts-navigation .meta-nav,
  .post-navigation .nav-subtitle,
  .posts-navigation .nav-subtitle {
    display: none;
  }

  .entry-footer {
    font-size: 0.84rem;
    line-height: 1.4;
  }
}

/* -------------------------------------------------------------
   23. Very small phones
------------------------------------------------------------- */

@media (max-width: 390px) {
  :root {
    --gutter: 20px;
  }

  .entry-title {
    font-size: 1.38rem;
    line-height: 1.2;
  }

  .entry-content,
  .entry-summary {
    font-size: 1rem;
    line-height: 1.7;
  }
}
