*,
*::before,
*::after {
	box-sizing: border-box;
    outline: 0 !important;
    text-decoration: none;
    font-synthesis: none;
    -webkit-font-smoothing: inherit;
}

body {
	font-family: Inter, system-ui, sans-serif;
    line-height: 1.85;
    font-weight: 400;
    letter-spacing: -0.02em;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background: #f0f0f0;
    font-size: 15px;
    color: #121212;
    min-height: 100vh;
}

.container {
	width: 100%;
	max-width: 540px;
	margin: 3vh auto;
	padding: 0 12px;
}

.feed-status, .empty {
	color: #121212;
	display: block;
	font-size: 12px;
  line-height: 18px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 8px 12px;
}

.controls {
	padding: 32px 0;
}
.link-grid .link {
	display: block;
	padding: 8px;
	text-decoration: none;
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	border-radius: 8px;
}
.link-grid .link:hover {
	background: rgba(0, 0, 0, 0.05);
}
.link-left, .link-right {
	display: flex;
	gap: 8px;
	align-items: center;
}
.link-favicon {
	display: block;
	width: 16px;
	height: 16px;
	border-radius: 100%;
}
.link-title {
	color: #121212;
	display: block;
	font-size: 14px;
  line-height: 18px;
  width: auto;
}
.link-details {
	display: flex;
  flex-direction: column;
}

.link-domain {
	color: #727272;
	font-size: 10px;
	display: inline-block;
	width: 100%;
	line-height: 18px;
  width: 100%;
}
.filters {
	display: flex;
	gap: 4px;
}
button.filter {
	background: rgba(0, 0, 0, 0.05);
	border-radius: 50px;
	padding: 8px 12px;
	font-size: 12px;
	letter-spacing: -0.01em;
	color: #666;
	border: 0;
	cursor: pointer;
	border: .5px solid rgba(0, 0, 0, 0);
}
button.filter:hover {
	border: .5px solid rgba(0, 0, 0, 0.15);
}
button.filter .filter-count {
	opacity: 0.5;
}
button.filter::first-letter {
  text-transform: uppercase;
}
button.filter[aria-pressed="true"] {
	background: #fff;
	color: #121212;
	border: .5px solid rgba(0, 0, 0, 0.05);
	box-shadow: 
    0 1px 1px rgba(0,0,0,0.08), 
    0 2px 2px rgba(0,0,0,0.08), 
    0 4px 4px rgba(0,0,0,0.08), 
    0 8px 8px rgba(0,0,0,0.08);
}
.search-wrap {
	position: relative;
	margin-bottom: 16px;
}
.search {
	background: #ffffff url(bueno-symbol-black.svg) no-repeat;
	background-size: 28px 28px;
  background-position: 12px center;
	border: 0.5px solid #dedede;
	border-radius: 50px;
	padding: 16px 42px 16px 50px;
	width: 100%;
	font-size: 14px;
	color: #222;
	display: block;
	box-shadow: 
    0 1px 1px rgba(0,0,0,0.08), 
    0 2px 2px rgba(0,0,0,0.08), 
    0 4px 4px rgba(0,0,0,0.08), 
    0 8px 8px rgba(0,0,0,0.08);
}
/* Hide the native WebKit cancel button in favor of the universal one */
.search::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}
.search-clear {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 100%;
	background-color: transparent;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 14px;
	cursor: pointer;
}
.search-clear:hover {
	background-color: rgba(0, 0, 0, 0.05);
}
.search-clear[hidden] {
	display: none;
}

.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.header-branding {
  display: flex;
  gap: 12px;
  align-items: center;
}
h1 {
  font-weight: 500;
  font-size: 16px;
  line-height: 110%;
  letter-spacing: -0.015rem;
  margin: 0;
}
.logo {
	width: 32px;
	height: 32px;
	display: block;
}

.about-link {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.05);
	border-radius: 100%;
	border: 0;
	padding: 0;
	color: #727272;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
}
.about-link:hover {
	color: #121212;
	background: rgba(0, 0, 0, 0.10);
}
.about-link[hidden] {
	display: none;
}

.modal[hidden] {
	display: none;
}
.modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 10;
}
.modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 18, 18, 0.35);
	backdrop-filter: blur(10px);
}
.modal-card {
	position: relative;
	background: #ffffff;
	border-radius: 32px;
	padding: 32px;
	max-width: 360px;
	width: 100%;
}
.modal-card h2 {
	margin: 0 0 40px;
	font-size: 16px;
	font-weight: 600;
}
.modal-card p {
	margin: 0;
	color: #727272;
	font-size: 12px;
	line-height: 1.6;
}
.modal-card p a {
	color: #222;
	text-decoration: underline;
}
.modal-close {
	position: absolute;
	top: 32px;
	right: 32px;
	background: transparent;
	border: 0;
	padding: 0;
	font-size: 12px;
	line-height: 1;
	color: #727272;
	cursor: pointer;
	background: rgba(0, 0, 0, 0.10);
	border-radius: 24px;
	border: 0;
	padding: 4px 8px;
}
.modal-close:hover {
	color: #121212;
}
